Fixed incorrect calculating hash from quic_cid_t

This commit is contained in:
Denis Pronin 2021-07-29 11:50:39 +03:00 committed by Wireshark GitLab Utility
parent 6b990690e8
commit 5cd9646e72
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ quic_connection_hash(gconstpointer key)
{
const quic_cid_t *cid = (const quic_cid_t *)key;
return wmem_strong_hash((const guint8 *)cid, cid->len);
return wmem_strong_hash((const guint8 *)cid, sizeof(quic_cid_t) - sizeof(cid->cid) + cid->len);
}
static gboolean