Fix segmentation fault when dumping subnets.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 8 Jul 2014 12:20:11 +0000 (14:20 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 8 Jul 2014 12:20:11 +0000 (14:20 +0200)
src/subnet.c

index 23160e5..5356f3a 100644 (file)
@@ -277,7 +277,7 @@ bool dump_subnets(connection_t *c) {
 
                send_request(c, "%d %d %s %s",
                                CONTROL, REQ_DUMP_SUBNETS,
-                               netstr, subnet->owner->name);
+                               netstr, subnet->owner ? subnet->owner->name : "(broadcast)");
        }
 
        return send_request(c, "%d %d", CONTROL, REQ_DUMP_SUBNETS);