X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..2bb115bda1b3a404f9e4535d69b83e893d210bd6:/print-bootp.c diff --git a/print-bootp.c b/print-bootp.c index dbb9f370..cde86456 100644 --- a/print-bootp.c +++ b/print-bootp.c @@ -20,6 +20,10 @@ * * Format and print bootp packets. */ +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.78 2004-03-02 07:38:10 hannes Exp $ (LBL)"; +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -36,10 +40,6 @@ #include "ether.h" #include "bootp.h" -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-bootp.c,v 1.76 2003-11-15 00:39:17 guy Exp $ (LBL)"; -#endif static void rfc1048_print(const u_char *); static void cmu_print(const u_char *); @@ -556,6 +556,10 @@ rfc1048_print(register const u_char *bp) break; case TAG_CLIENT_FQDN: + /* option 81 should be at least 4 bytes long */ + if (len < 4) + printf("ERROR: options 81 len %u < 4 bytes", len); + break; if (*bp++) printf("[svrreg]"); if (*bp)