From 0af35d90a125952d04aa892522b6be324f2dfbf7 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Thu, 24 Aug 2017 21:43:29 -0300 Subject: *: fix assorted issues detected by Coverity Scan Signed-off-by: Renato Westphal --- ospf6d/ospf6_zebra.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ospf6d') 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, -- cgit v1.2.3