]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Cookies with non-crypto-secure random
authorWitold Kręcicki <wpk@isc.org>
Fri, 12 Oct 2018 11:59:33 +0000 (11:59 +0000)
committerWitold Kręcicki <wpk@isc.org>
Wed, 24 Oct 2018 07:10:20 +0000 (07:10 +0000)
lib/ns/client.c

index b5c3175dc2ca7ca67452de6f46f43d3c5d8aab18..c4e670833dfeea2d4c5ba1713f8091e06e21d866 100644 (file)
@@ -1656,7 +1656,7 @@ ns_client_addopt(ns_client_t *client, dns_message_t *message,
                isc_buffer_init(&buf, cookie, sizeof(cookie));
                isc_stdtime_get(&now);
 
-               isc_nonce_buf(&nonce, sizeof(nonce));
+               isc_random_buf(&nonce, sizeof(nonce));
 
                compute_cookie(client, now, nonce, client->sctx->secret, &buf);