diff options
author | Constantine Gavrilov <constg@il.ibm.com> | 2021-03-10 12:54:33 +0200 |
---|---|---|
committer | Pascal Quantin <pascal@wireshark.org> | 2021-04-17 10:29:15 +0000 |
commit | 5db4d2c0c9f876c7dd27df8598b7ed1dd5b6f959 (patch) | |
tree | e451deb0600b2d1e2688d5df951cb1d51fac175c /epan/dissectors/packet-knxip.c | |
parent | 6341257fae6164a2a82eaa377c355430035a7f71 (diff) |
Fix compilation with gcc-11.
Closes #17281
Diffstat (limited to 'epan/dissectors/packet-knxip.c')
-rw-r--r-- | epan/dissectors/packet-knxip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-knxip.c b/epan/dissectors/packet-knxip.c index 885e29a335..8e730b8720 100644 --- a/epan/dissectors/packet-knxip.c +++ b/epan/dissectors/packet-knxip.c @@ -2585,7 +2585,7 @@ static guint8* decrypt_secure_wrapper( const guint8* key, const guint8* data, gi if( decrypted ) { /* Calculate MAC */ - guint8 mac[ 16 ]; + guint8 mac[ KNX_KEY_LENGTH ]; p_length -= 16; knxip_ccm_calc_cbc_mac( mac, key, data, a_length, decrypted, p_length, nonce, 14 ); @@ -2809,7 +2809,7 @@ static guint8 check_timer_sync_mac( const guint8* key, const guint8* data, gint { // Calculate and encrypt MAC const guint8* nonce = data + header_length; - guint8 mac[ 16 ]; + guint8 mac[ KNX_KEY_LENGTH ]; knxip_ccm_calc_cbc_mac( mac, key, data, header_length, NULL, 0, nonce, 14 ); knxip_ccm_encrypt( mac, key, NULL, 0, mac, nonce, 14 ); |