diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-22 20:43:17 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-01-22 20:43:17 +0000 |
commit | 03e22964896cc63c8db200e3ae15d52e834d0894 (patch) | |
tree | f6610e44a3bbbeeef24829137613c75a53543b62 /packet-msproxy.c | |
parent | c91bc4477cd628f37e2855fc63f94b496c524e02 (diff) |
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).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9782 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-msproxy.c')
-rw-r--r-- | packet-msproxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-msproxy.c b/packet-msproxy.c index 764d7c619d..b1d76aa1b4 100644 --- a/packet-msproxy.c +++ b/packet-msproxy.c @@ -2,7 +2,7 @@ * Routines for Microsoft Proxy packet dissection * Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com> * - * $Id: packet-msproxy.c,v 1.37 2004/01/10 02:43:28 guy Exp $ + * $Id: packet-msproxy.c,v 1.38 2004/01/22 20:43:17 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -247,7 +247,7 @@ static void msproxy_sub_dissector( tvbuff_t *tvb, packet_info *pinfo, pinfo->destport); else decode_udp_ports( tvb, 0, pinfo, tree, pinfo->srcport, - pinfo->destport); + pinfo->destport, -1); *ptr = redirect_info->server_int_port; } |