aboutsummaryrefslogtreecommitdiffstats
path: root/packet-socks.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-22 20:43:17 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-22 20:43:17 +0000
commit433524da93fc30b7a869ba7c8e78d8d7a8166d19 (patch)
treef6610e44a3bbbeeef24829137613c75a53543b62 /packet-socks.c
parent89e496d1ab23e1cc2733fba954243439308df46f (diff)
downloadwireshark-433524da93fc30b7a869ba7c8e78d8d7a8166d19.tar.gz
wireshark-433524da93fc30b7a869ba7c8e78d8d7a8166d19.tar.bz2
wireshark-433524da93fc30b7a869ba7c8e78d8d7a8166d19.zip
Use the length field in the UDP header:
if it's < 8, don't dissect anything past the length field (the length must be >= 8); otherwise, if it's less than the data or reported length from the tvbuff, use the length from the header; otherwise, don't checksum the packet (if it's greater than the reported length, and the packet isn't fragmented, we should somehow report that as an error). svn path=/trunk/; revision=9782
Diffstat (limited to 'packet-socks.c')
-rw-r--r--packet-socks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-socks.c b/packet-socks.c
index 9fe818e700..0bdee89249 100644
--- a/packet-socks.c
+++ b/packet-socks.c
@@ -2,7 +2,7 @@
* Routines for socks versions 4 &5 packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-socks.c,v 1.55 2004/01/10 02:43:29 guy Exp $
+ * $Id: packet-socks.c,v 1.56 2004/01/22 20:43:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -418,7 +418,7 @@ socks_udp_dissector(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
*ptr = hash_info->udp_remote_port;
- decode_udp_ports( tvb, offset, pinfo, tree, pinfo->srcport, pinfo->destport);
+ decode_udp_ports( tvb, offset, pinfo, tree, pinfo->srcport, pinfo->destport, -1);
*ptr = hash_info->udp_port;