aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorRemi Gacogne <remi.gacogne@powerdns.com>2016-03-09 19:01:10 +0100
committerMichael Mann <mmann78@netscape.net>2016-03-10 02:11:00 +0000
commitcc251536fbd195e0484356ff0e24ce5cae4c2806 (patch)
tree44378d0630b6abc6b79851943528ca9686f07ab4 /epan
parentf1d20ec24526c9a74c0c76f0f045490c69276a66 (diff)
DNS: Fix handling of the server part of EDNS0 Cookie Option
cur_offset was not incremented for the server part, causing a "Malformed packet" message. Change-Id: I21cb876e0d70b1de0cb2f76d37edec4c2ec7c788 Reviewed-on: https://code.wireshark.org/review/14402 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-dns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index 0d351398d4..6a6a72ef05 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -2776,6 +2776,7 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
rropt_len -= 8;
optlen -= 8;
proto_tree_add_item(rropt_tree, hf_dns_opt_cookie_server, tvb, cur_offset, optlen, ENC_NA);
+ cur_offset += optlen;
rropt_len -= optlen;
break;
case O_EDNS_TCP_KA: