]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Kerberos: Remove a redundant bounds check
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 25 Mar 2022 08:08:59 +0000 (09:08 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 25 Mar 2022 08:08:59 +0000 (09:08 +0100)
print-krb.c

index b4c0fadf7c576f21a39929d72567c02469ebe3ae..d1bae9d9f13dde9fa217a7ef6eece01df1580518 100644 (file)
@@ -232,11 +232,6 @@ krb_print(netdissect_options *ndo,
        ndo->ndo_protocol = "krb";
        kp = (const struct krb *)dat;
 
-       if (dat >= ndo->ndo_snapend) {
-               nd_print_trunc(ndo);
-               return;
-       }
-
        switch (GET_U_1(kp->pvno)) {
 
        case 1: