mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
RESP: Fix Coverity warnings
The warnings were: Calling "fn_printn" without checking return value (as is done elsewhere 52 out of 56 times)
This commit is contained in:
parent
119ee49153
commit
978b1f72d9
@ -141,7 +141,8 @@ static int resp_print_inline(netdissect_options *, register const u_char *, int)
|
||||
*/
|
||||
#define RESP_PRINT_SEGMENT(_ndo, _bp, _len) \
|
||||
ND_PRINT((_ndo, " \"")); \
|
||||
fn_printn(_ndo, _bp, _len, _ndo->ndo_snapend); \
|
||||
if (fn_printn(_ndo, _bp, _len, _ndo->ndo_snapend)) \
|
||||
goto trunc; \
|
||||
fn_print_char(_ndo, '"');
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user