From d8ea4c11dec5946c135ad2d2d05954473a0bfda9 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 8 Jul 2014 14:20:11 +0200 Subject: [PATCH] Fix segmentation fault when dumping subnets. --- src/subnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subnet.c b/src/subnet.c index 23160e5..5356f3a 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); -- 2.25.1