]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Do length checking for the key ID of the enhanced auth option.
authorGuy Harris <[email protected]>
Mon, 26 Sep 2016 00:48:21 +0000 (17:48 -0700)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:40 +0000 (09:16 +0100)
print-tcp.c

index f00ff32514802bebf9dd4ad8df20b300ffeb873a..01d4c7b81471364e82ba426ba9866062080bfd81 100644 (file)
@@ -538,6 +538,7 @@ tcp_print(netdissect_options *ndo,
                                 break;
 
                         case TCPOPT_AUTH:
+                                LENCHECK(1);
                                 ND_PRINT((ndo, " keyid %d", *cp++));
                                 datalen = len - 3;
                                 for (i = 0; i < datalen; ++i) {