X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a63600a1fc28dbc7ae7ce9f996829c49a25fb33c..fb59931bfca6eed43f8aa0bbec37565fc3c084cb:/print-resp.c diff --git a/print-resp.c b/print-resp.c index 37a386e3..7388a73f 100644 --- a/print-resp.c +++ b/print-resp.c @@ -306,7 +306,7 @@ resp_print_string_error_integer(netdissect_options *ndo, const u_char *bp, int l * preceding the \r\n. That includes the opcode, so don't print * that. */ - len = ND_BYTES_BETWEEN(bp_ptr, bp); + len = ND_BYTES_BETWEEN(bp, bp_ptr); RESP_PRINT_SEGMENT(ndo, bp, len); ret_len = 1 /**/ + len /**/ + 2 /**/; @@ -431,7 +431,7 @@ resp_print_inline(netdissect_options *ndo, const u_char *bp, int length) { * Found it; bp_ptr points to the \r or \n, so bp_ptr - bp is the * Length of the line text that precedes it. Print it. */ - len = ND_BYTES_BETWEEN(bp_ptr, bp); + len = ND_BYTES_BETWEEN(bp, bp_ptr); RESP_PRINT_SEGMENT(ndo, bp, len); /*