aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bootp.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1998-10-13 03:39:15 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1998-10-13 03:39:15 +0000
commit6282a99523f542f76d8b71e7af842a3679a302a4 (patch)
tree741c3ff7ebf53eb827eb720a61aa6ac55f02071d /packet-bootp.c
parent0c8d1dd1b3dd663d5cf538cf2f53f4c37416a989 (diff)
Removed an endless loop situation if the BOOTP option was unknown.
svn path=/trunk/; revision=42
Diffstat (limited to 'packet-bootp.c')
-rw-r--r--packet-bootp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-bootp.c b/packet-bootp.c
index 80cf312616..6b354d6ccc 100644
--- a/packet-bootp.c
+++ b/packet-bootp.c
@@ -2,7 +2,7 @@
* Routines for BOOTP/DHCP packet disassembly
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
- * $Id: packet-bootp.c,v 1.6 1998/09/27 22:12:27 gerald Exp $
+ * $Id: packet-bootp.c,v 1.7 1998/10/13 03:39:15 gram Exp $
*
* The information used comes from:
* RFC 2132: DHCP Options and BOOTP Vendor Extensions
@@ -70,7 +70,7 @@ bootp_option(const u_char *pd, GtkWidget *bp_tree, int voff, int eoff)
enum field_type ftype;
u_char code = pd[voff];
int vlen = pd[voff+1];
- int i, consumed = 0;
+ int i, consumed = 1; /* if code is unknown, consume 1 byte */
GtkWidget *vti, *v_tree;
char *opt53_text[] = {