]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-geonet.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-geonet.c
index dfb19db84230287d70b0350cf7903811af532092..3f8ee07572d1b36da64199d1deb56840a49519f4 100644 (file)
@@ -17,9 +17,7 @@
 
 /* \summary: ISO CALM FAST and ETSI GeoNetworking printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -169,6 +167,7 @@ geonet_print(netdissect_options *ndo, const u_char *bp, u_int length,
        print_long_pos_vector(ndo, bp + 8);
 
        /* Skip Common Header */
+       ND_TCHECK_LEN(bp, 36);
        length -= 36;
        bp += 36;