projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23a22ea
)
Fix segmentation fault when dumping subnets.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 Jul 2014 12:20:11 +0000
(14:20 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 Jul 2014 12:20:11 +0000
(14:20 +0200)
src/subnet.c
patch
|
blob
|
history
diff --git
a/src/subnet.c
b/src/subnet.c
index
23160e5
..
5356f3a
100644
(file)
--- 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);