Merge pull request #3013 from pacovn/static_analysis__conditional_omitted_operand1

nhrpd: missing operand added
This commit is contained in:
Donald Sharp 2018-09-13 08:34:31 -04:00 committed by GitHub
commit f2e946e681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)