BGP: Fix a Coverity warning

The warning was:
Calling fn_printn without checking return value (as is done elsewhere
57 out of 58 times).
This commit is contained in:
Francois-Xavier Le Bail 2017-05-05 09:34:07 +02:00
parent d041d4f78e
commit 002cd31413

View File

@ -2699,7 +2699,7 @@ bgp_notification_print(netdissect_options *ndo,
else {
ND_TCHECK2(*(tptr+1), shutdown_comm_length);
ND_PRINT((ndo, ", Shutdown Communication (length: %u): \"", shutdown_comm_length));
fn_printn(ndo, tptr+1, shutdown_comm_length, NULL);
(void)fn_printn(ndo, tptr+1, shutdown_comm_length, NULL);
ND_PRINT((ndo, "\""));
remainder_offset += shutdown_comm_length + 1;
}