mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 18:43:39 +08:00
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:
parent
d041d4f78e
commit
002cd31413
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user