mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
fix the IPv6 address length in compute_cookie. [RT #46538]
This commit is contained in:
@@ -1841,7 +1841,7 @@ compute_cookie(ns_client_t *client, isc_uint32_t when, isc_uint32_t nonce,
|
||||
break;
|
||||
case AF_INET6:
|
||||
cp = (unsigned char *)&netaddr.type.in6;
|
||||
length = 4;
|
||||
length = 16;
|
||||
break;
|
||||
default:
|
||||
INSIST(0);
|
||||
@@ -1878,7 +1878,7 @@ compute_cookie(ns_client_t *client, isc_uint32_t when, isc_uint32_t nonce,
|
||||
break;
|
||||
case AF_INET6:
|
||||
cp = (unsigned char *)&netaddr.type.in6;
|
||||
length = 4;
|
||||
length = 16;
|
||||
break;
|
||||
default:
|
||||
INSIST(0);
|
||||
|
Reference in New Issue
Block a user