From: Guus Sliepen Date: Tue, 8 Jul 2014 12:20:11 +0000 (+0200) Subject: Fix segmentation fault when dumping subnets. X-Git-Tag: release-1.1pre11~75 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=d8ea4c11dec5946c135ad2d2d05954473a0bfda9;p=tinc Fix segmentation fault when dumping subnets. --- diff --git a/src/subnet.c b/src/subnet.c index 23160e52..5356f3a7 100644 --- a/src/subnet.c +++ b/src/subnet.c @@ -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);