Fix segmentation fault when dumping subnets.

This commit is contained in:
Guus Sliepen 2014-07-08 14:20:11 +02:00
parent 23a22ea1ce
commit d8ea4c11de

View 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);