diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-06-25 23:27:56 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-06-25 23:27:56 +0000 |
commit | 599a7bfd3968aefe1f38b52f7cded11a6367b2f9 (patch) | |
tree | 434a301c7e2c18a793ddd17a90aa45517047c6d7 /packet-srvloc.c | |
parent | 9fa514388ccd0de9074a015f278a2518cc163571 (diff) | |
download | wireshark-599a7bfd3968aefe1f38b52f7cded11a6367b2f9.tar.gz wireshark-599a7bfd3968aefe1f38b52f7cded11a6367b2f9.tar.bz2 wireshark-599a7bfd3968aefe1f38b52f7cded11a6367b2f9.zip |
In an SA Advertisement, fetch the scope list length before using it.
svn path=/trunk/; revision=7935
Diffstat (limited to 'packet-srvloc.c')
-rw-r--r-- | packet-srvloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-srvloc.c b/packet-srvloc.c index 6a487fd505..0071203094 100644 --- a/packet-srvloc.c +++ b/packet-srvloc.c @@ -7,7 +7,7 @@ * In particular I have not had an opportunity to see how it * responds to SRVLOC over TCP. * - * $Id: packet-srvloc.c,v 1.40 2003/03/01 09:03:42 guy Exp $ + * $Id: packet-srvloc.c,v 1.41 2003/06/25 23:27:56 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -925,6 +925,7 @@ dissect_srvloc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset += 2; proto_tree_add_item(srvloc_tree, hf_srvloc_saadvert_url, tvb, offset, length, TRUE); offset += length; + length = tvb_get_ntohs(tvb, offset); proto_tree_add_uint(srvloc_tree, hf_srvloc_saadvert_scopelistlen, tvb, offset, 2, length); offset += 2; proto_tree_add_item(srvloc_tree, hf_srvloc_saadvert_scopelist, tvb, offset, length, TRUE); |