summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-09-13 12:05:20 +0200
committerF. Aragon <paco@voltanet.io>2018-09-13 12:05:20 +0200
commit57b0ac508ef6f5e1d0f802b8a258f5cf48d11256 (patch)
treec6d21c9b42817cdfdee1520b4217962880ec96df /nhrpd
parentMerge branch 'warnings' (diff)
downloadfrr-57b0ac508ef6f5e1d0f802b8a258f5cf48d11256.tar.xz
frr-57b0ac508ef6f5e1d0f802b8a258f5cf48d11256.zip
nhrpd: missing operand added
Detected using -Wgnu-conditional-omitted-operand Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'nhrpd')
-rw-r--r--nhrpd/nhrp_peer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c
index e051830f8..203d4aa98 100644
--- a/nhrpd/nhrp_peer.c
+++ b/nhrpd/nhrp_peer.c
@@ -814,8 +814,9 @@ static void nhrp_packet_debug(struct zbuf *zb, const char *dir)
reply = packet_types[hdr->type].type == PACKET_REPLY;
debugf(NHRP_DEBUG_COMMON, "%s %s(%d) %s -> %s", dir,
- packet_types[hdr->type].name ?: "Unknown", hdr->type,
- reply ? buf[1] : buf[0], reply ? buf[0] : buf[1]);
+ (packet_types[hdr->type].name ? packet_types[hdr->type].name
+ : "Unknown"),
+ hdr->type, reply ? buf[1] : buf[0], reply ? buf[0] : buf[1]);
}
static int proto2afi(uint16_t proto)