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:
Francois-Xavier Le Bail 2016-07-19 14:37:47 +02:00
parent 119ee49153
commit 978b1f72d9

View File

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