Repositories
/
olsrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c9a41c3
)
jsoninfo: fix a crash when there are no gateways
author
Ferry Huberts
<ferry.huberts@pelagic.nl>
Fri, 19 Jun 2015 16:12:04 +0000
(18:12 +0200)
committer
Ferry Huberts
<ferry.huberts@pelagic.nl>
Fri, 19 Jun 2015 16:28:56 +0000
(18:28 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c
patch
|
blob
|
history
diff --git
a/lib/jsoninfo/src/olsrd_jsoninfo.c
b/lib/jsoninfo/src/olsrd_jsoninfo.c
index
5f6e437
..
7bb9d86
100644
(file)
--- a/
lib/jsoninfo/src/olsrd_jsoninfo.c
+++ b/
lib/jsoninfo/src/olsrd_jsoninfo.c
@@
-871,7
+871,7
@@
static void sgw_ipvx(struct autobuf *abuf, bool ipv6) {
struct ipaddr_str tunnelGwStr;
const char * tunnelGw;
- struct gateway_entry * gw = node
->gw
;
+ struct gateway_entry * gw = node
? node->gw : NULL
;
struct tc_entry* tc;
if (!gw) {