]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Consistently use 4, rather than a sizeof, as the size of an IPv4 address.
authorGuy Harris <[email protected]>
Tue, 22 Dec 2015 19:45:52 +0000 (11:45 -0800)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 18 Jan 2017 08:16:39 +0000 (09:16 +0100)
print-gre.c

index d739e03833c6a8b472dc28d4e5b2ff3ad58daf85..4b83ca2599dc1efc5dcb7aff9d2ffce7c365efba 100644 (file)
@@ -369,7 +369,7 @@ gre_sre_ip_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen,
        }
 
        while (srelen != 0) {
-               if (!ND_TTEST2(*bp, sizeof(struct in_addr)))
+               if (!ND_TTEST2(*bp, 4))
                        return (0);
                if (len < 4)
                        return (0);