diff options
-rw-r--r-- | epan/dissectors/packet-l2tp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-l2tp.c b/epan/dissectors/packet-l2tp.c index 830ac7c278..e0d33f0db1 100644 --- a/epan/dissectors/packet-l2tp.c +++ b/epan/dissectors/packet-l2tp.c @@ -924,7 +924,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, L2TP_HMAC_SHA1_DIGEST_LEN); sha1_hmac_update(&ms, zero, avp_len - 1); |