From 978b1f72d977179c8757175f4805cabbf7e0fa42 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 19 Jul 2016 14:37:47 +0200 Subject: [PATCH] RESP: Fix Coverity warnings The warnings were: Calling "fn_printn" without checking return value (as is done elsewhere 52 out of 56 times) --- print-resp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/print-resp.c b/print-resp.c index 0aa3d69e..5e36edaf 100644 --- a/print-resp.c +++ b/print-resp.c @@ -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