Reduce pointer indirection for global list_t variables
[tinc] / src / control.c
index 6e2a7f3..175f2bd 100644 (file)
@@ -108,7 +108,7 @@ bool control_h(connection_t *c, const char *request) {
                        return control_return(c, REQ_DISCONNECT, -1);
                }
 
-               for list_each(connection_t, other, connection_list) {
+               for list_each(connection_t, other, &connection_list) {
                        if(strcmp(other->name, name)) {
                                continue;
                        }