diff options
author | paco <paco@voltanet.io> | 2018-06-15 13:08:37 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-15 13:08:37 +0200 |
commit | 246879c303142aab09212effbe41257f56126719 (patch) | |
tree | 93da4cde65eee0c4c69861e60dc48107b84d388a /ospf6d/ospf6_interface.c | |
parent | Merge pull request #2426 from pacovn/Coverity_23089_Buffer_not_null_terminated (diff) | |
download | frr-246879c303142aab09212effbe41257f56126719.tar.xz frr-246879c303142aab09212effbe41257f56126719.zip |
ospf6d: unchecked return value (Coverity 1221437)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r-- | ospf6d/ospf6_interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index cc8577b94..9178bf2f6 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -864,7 +864,6 @@ static int ospf6_interface_show(struct vty *vty, struct interface *ifp) struct prefix *p; struct listnode *i; char strbuf[PREFIX2STR_BUFFER], drouter[32], bdrouter[32]; - const char *updown[3] = {"down", "up", NULL}; const char *type; struct timeval res, now; char duration[32]; @@ -881,7 +880,7 @@ static int ospf6_interface_show(struct vty *vty, struct interface *ifp) type = "UNKNOWN"; vty_out(vty, "%s is %s, type %s\n", ifp->name, - updown[if_is_operative(ifp)], type); + (if_is_operative(ifp) ? "up" : "down"), type); vty_out(vty, " Interface ID: %d\n", ifp->ifindex); if (ifp->info == NULL) { |