]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add an additional check for a truncated packet, as per a patch from Jim
authorguy <guy>
Wed, 21 Feb 2001 08:52:30 +0000 (08:52 +0000)
committerguy <guy>
Wed, 21 Feb 2001 08:52:30 +0000 (08:52 +0000)
Hutchins <[email protected]>.

CREDITS
print-domain.c

diff --git a/CREDITS b/CREDITS
index 3538157d58c82f7fe60913741bb0a2c8a604b00a..e53d6895ccb5d0d99802377f911ae2de34f9ba6b 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -26,6 +26,7 @@ Additional people who have contributed patches:
        JINMEI Tatuya                   <[email protected]>
        Jefferson Ogata                 <[email protected]>
        Jeffrey Hutzelman               <[email protected]>
+       Jim Hutchins                    <[email protected]>
        Juergen Schoenwaelder           <[email protected]>
        Ken Hornstein                   <[email protected]>
        Kevin Steves                    <[email protected]>
index 0c3c80e101d383c0a82b93fd611ab97acc7d7867..efde6a4fc16f0c3debf2900eaa38ccea6a4c4e2f 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.73 2001-02-20 07:22:17 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-domain.c,v 1.74 2001-02-21 08:52:30 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -494,6 +494,7 @@ ns_print(register const u_char *bp, u_int length)
        register const u_char *cp = NULL;
 
        np = (const HEADER *)bp;
+       TCHECK(*np);
        /* get the byte-order right */
        qdcount = ntohs(np->qdcount);
        ancount = ntohs(np->ancount);