diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2013-12-24 07:24:39 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2013-12-24 07:24:39 +0000 |
commit | 8cbcfcf6a406b9c79f222c2d217e3b1ddf0e9240 (patch) | |
tree | 29a934aae9fdedb730e4d7beb3908ea36288ab3c | |
parent | 18f94609d890abebedc91fc2f7b2c6a963d3c022 (diff) | |
download | wireshark-8cbcfcf6a406b9c79f222c2d217e3b1ddf0e9240.tar.gz |
Lop off last 4 bytes of payload to use for digest calculation. Still doesn't get expected result.
svn path=/trunk/; revision=54437
-rw-r--r-- | epan/dissectors/packet-pdcp-lte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pdcp-lte.c b/epan/dissectors/packet-pdcp-lte.c index 0da33e0624..17efa2b041 100644 --- a/epan/dissectors/packet-pdcp-lte.c +++ b/epan/dissectors/packet-pdcp-lte.c @@ -1469,7 +1469,7 @@ static guint32 calculate_digest(pdu_security_settings_t *pdu_security_settings, /* TODO: need to do gcry_mac_setiv() ??? If so what is the IV to use! */ /* Extract the encrypted data into a buffer */ - message_length = tvb_length_remaining(tvb, offset); + message_length = tvb_length_remaining(tvb, offset) - 4; message_data = (guint8 *)g_malloc0(message_length+8); message_data[0] = (pdu_security_settings->count & 0xff000000) >> 24; message_data[1] = (pdu_security_settings->count & 0x00ff0000) >> 16; |