git.samba.org
/
metze
/
wireshark
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1d20ec
)
DNS: Fix handling of the server part of EDNS0 Cookie Option
author
Remi Gacogne
<remi.gacogne@powerdns.com>
Wed, 9 Mar 2016 18:01:10 +0000
(19:01 +0100)
committer
Michael Mann
<mmann78@netscape.net>
Thu, 10 Mar 2016 02:11:00 +0000
(
02:11
+0000)
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>
epan/dissectors/packet-dns.c
patch
|
blob
|
history
diff --git
a/epan/dissectors/packet-dns.c
b/epan/dissectors/packet-dns.c
index 0d351398d4a32e3bfb31bfe4a536755d61d3ee99..6a6a72ef05a245f8948c519a54cbec1ea08e8fba 100644
(file)
--- 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: