]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ZeroMQ: Use nd_trunc_longjmp()
authorDenis Ovsienko <[email protected]>
Wed, 30 Sep 2020 02:17:59 +0000 (03:17 +0100)
committerDenis Ovsienko <[email protected]>
Wed, 30 Sep 2020 13:52:46 +0000 (14:52 +0100)
print-zeromq.c

index 2cf9d6c3ffabdfaaec75be0a960bf1af4c3624f9..c702046822b145453ddba6e0a8b9134d47578e07 100644 (file)
@@ -133,8 +133,7 @@ zmtp1_print_frame(netdissect_options *ndo, const u_char *cp, const u_char *ep)
        return cp + body_len_declared;
 
 trunc:
-       nd_print_trunc(ndo);
-       return ep;
+       nd_trunc_longjmp(ndo);
 }
 
 void
@@ -201,8 +200,7 @@ zmtp1_print_intermediate_part(netdissect_options *ndo, const u_char *cp, const u
        return cp + frame_offset;
 
 trunc:
-       nd_print_trunc(ndo);
-       return cp + len;
+       nd_trunc_longjmp(ndo);
 }
 
 void