]> The Tcpdump Group git mirrors - tcpdump/commitdiff
AHCP: Fix the uses of the pointer to the end of current packet
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 1 Mar 2018 15:20:32 +0000 (16:20 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 1 Mar 2018 15:40:09 +0000 (16:40 +0100)
Must be based on packet header caplen.

print-ahcp.c

index 3568fef5a4cd7ecf466cf96fbae77f2e7c1d8d00..e452e383682e6c8c6ebf038f1ca773ce88676e69 100644 (file)
@@ -347,7 +347,7 @@ trunc:
 void
 ahcp_print(netdissect_options *ndo, const u_char *cp, const u_int len)
 {
-       const u_char *ep = cp + len;
+       const u_char *ep = ndo->ndo_snapend;
        uint8_t version;
 
        ND_PRINT("AHCP");