diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-12-03 19:02:36 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-12-04 03:03:11 +0000 |
commit | 5aede1bc50b6bb9ae13926e2249d22d95c12814e (patch) | |
tree | 4e07bddacbe57b3da15371434bd837fe6205506f | |
parent | b49e20c10af2fd1d21f8b8399db3fe4ffd6366df (diff) |
Squelch a casting-away-constness warning.
Change-Id: I77ca8ffd38baf812ef20b9611f59cd70ae37d392
Reviewed-on: https://code.wireshark.org/review/19062
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | epan/crypt/airpdcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/crypt/airpdcap.c b/epan/crypt/airpdcap.c index a0a04688c3..f8fd0eec07 100644 --- a/epan/crypt/airpdcap.c +++ b/epan/crypt/airpdcap.c @@ -326,7 +326,7 @@ static INT AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, guint eapol_len) { guint8 key_version; - guint8 *key_data; + const guint8 *key_data; guint8 *szEncryptedKey; guint16 key_bytes_len = 0; /* Length of the total key data field */ guint16 key_len; /* Actual group key length */ @@ -358,7 +358,7 @@ AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_ } /* Encrypted key is in the information element field of the EAPOL key packet */ - key_data = (guint8 *)pEAPKey + sizeof(EAPOL_RSN_KEY); + key_data = (const guint8 *)pEAPKey + sizeof(EAPOL_RSN_KEY); szEncryptedKey = (guint8 *)g_memdup(key_data, key_bytes_len); DEBUG_DUMP("Encrypted Broadcast key:", szEncryptedKey, key_bytes_len); |