Repositories
/
olsrd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jsoninfo: fix a crash when there are no gateways
[olsrd.git]
/
lib
/
jsoninfo
/
src
/
olsrd_jsoninfo.c
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) {