]> tinc-vpn.org Git - tinc/blobdiff - src/control.c
Fix memory leak while running Dijkstra's algorithm.
[tinc] / src / control.c
index b8e5204b9db0a58d6e1b2e2fbe1bd1f6d82a01f8..2e6be57679f0fbb5799ac25535ee3a423abe57bb 100644 (file)
@@ -54,7 +54,7 @@ bool control_h(connection_t *c, char *request) {
 
        switch (type) {
                case REQ_STOP:
-                       event_loopexit(NULL);
+                       running = false;
                        return control_ok(c, REQ_STOP);
 
                case REQ_DUMP_NODES: