summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-08-25 02:43:29 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-08-25 02:49:39 +0200
commit0af35d90a125952d04aa892522b6be324f2dfbf7 (patch)
tree30a64161c4e98d6695d8c3104d4dba1c41d8e767 /ospf6d
parentpimd: Cleanup a variety of SA issues (diff)
downloadfrr-0af35d90a125952d04aa892522b6be324f2dfbf7.tar.xz
frr-0af35d90a125952d04aa892522b6be324f2dfbf7.zip
*: fix assorted issues detected by Coverity Scan
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_zebra.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c
index 3443bc47b..2d04790d2 100644
--- a/ospf6d/ospf6_zebra.c
+++ b/ospf6d/ospf6_zebra.c
@@ -231,11 +231,7 @@ static int ospf6_zebra_read_route(int command, struct zclient *zclient,
char prefixstr[PREFIX2STR_BUFFER], nexthopstr[128];
prefix2str((struct prefix *)&api.prefix, prefixstr,
sizeof(prefixstr));
- if (nexthop)
- inet_ntop(AF_INET6, nexthop, nexthopstr,
- sizeof(nexthopstr));
- else
- snprintf(nexthopstr, sizeof(nexthopstr), "::");
+ inet_ntop(AF_INET6, nexthop, nexthopstr, sizeof(nexthopstr));
zlog_debug(
"Zebra Receive route %s: %s %s nexthop %s ifindex %ld tag %" ROUTE_TAG_PRI,