aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-l2tp.c
diff options
context:
space:
mode:
authorNicolas S. Dade <nic.dade@gmail.com>2015-11-25 23:24:52 -0800
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-11-26 11:05:01 +0000
commit97e627e56d98bc45cd87cf629617c0dbd1798f6b (patch)
tree465536eb1c1cdbe029b6464fa4d8c2afd5372666 /epan/dissectors/packet-l2tp.c
parentbe7bd77d993992c7bfa2aba43abf6cc9b5490cf5 (diff)
L2TP: Correct L2TP over IP SHA1 message digest
It should match the MD5 code, and skip over the 0x00000000 session id at the start of tvb. Change-Id: Ia3bee2bd07015523acc49bd7cb0247c3f1ac986e Reviewed-on: https://code.wireshark.org/review/12168 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-l2tp.c')
-rw-r--r--epan/dissectors/packet-l2tp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-l2tp.c b/epan/dissectors/packet-l2tp.c
index 0a859fea15..8c791deb0a 100644
--- a/epan/dissectors/packet-l2tp.c
+++ b/epan/dissectors/packet-l2tp.c
@@ -890,7 +890,7 @@ static void sha1_hmac_digest(l2tpv3_tunnel_t *tunnel,
}
}
- sha1_hmac_update(&ms, tvb_get_ptr(tvb, 0, idx + 1 - offset), idx + 1 - offset);
+ sha1_hmac_update(&ms, tvb_get_ptr(tvb, offset, idx + 1 - offset), idx + 1 - offset);
/* Message digest is calculated with an empty message digest field */
memset(zero, 0, SHA1_DIGEST_LEN);
sha1_hmac_update(&ms, zero, avp_len - 1);