aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bootp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-26 07:34:43 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-26 07:34:43 +0000
commitf93c76fd10c0899a5ce6b8eae5009c5b374cdbd8 (patch)
treebd78b3a5917f10ac3c0089bfed2d856bf0db57c7 /packet-bootp.c
parent8b2e03eea6229b300b3de3322f14c446d0c303e9 (diff)
downloadwireshark-f93c76fd10c0899a5ce6b8eae5009c5b374cdbd8.tar.gz
wireshark-f93c76fd10c0899a5ce6b8eae5009c5b374cdbd8.tar.bz2
wireshark-f93c76fd10c0899a5ce6b8eae5009c5b374cdbd8.zip
Convert a bunch of uses of "fd->cap_len" to use "pi.captured_len" (or to
use END_OF_FRAME), so that they don't look at stuff in an IP datagram past the end of the IP datagram (i.e., frame padding). svn path=/trunk/; revision=584
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 94d13636f3..d24ba465ae 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.18 1999/07/29 05:46:52 gram Exp $
+ * $Id: packet-bootp.c,v 1.19 1999/08/26 07:34:43 guy Exp $
*
* The information used comes from:
* RFC 2132: DHCP Options and BOOTP Vendor Extensions
@@ -517,7 +517,7 @@ dissect_bootp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
}
voff = offset+240;
- eoff = fd->cap_len;
+ eoff = pi.captured_len;
while (voff < eoff) {
voff += bootp_option(pd, bp_tree, voff, eoff);