]> tinc-vpn.org Git - tinc/blobdiff - src/control.c
Don't assume sa.sa_family is a short int.
[tinc] / src / control.c
index dc8890a867ef5cf661965c6a45abc23bf2e7144d..98eae804d7cc46b79b0d9448fbadd512d2984618 100644 (file)
@@ -106,7 +106,7 @@ bool control_h(connection_t *c, const char *request) {
                        for list_each(connection_t, other, connection_list) {
                                if(strcmp(other->name, name))
                                        continue;
-                               terminate_connection(other, other->status.active);
+                               terminate_connection(other, other->edge);
                                found = true;
                        }