From: Witold Kręcicki Date: Fri, 12 Oct 2018 11:59:33 +0000 (+0000) Subject: Cookies with non-crypto-secure random X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dceabb547b182dadf73cce355779f7aaf7896057;p=thirdparty%2Fbind9.git Cookies with non-crypto-secure random --- diff --git a/lib/ns/client.c b/lib/ns/client.c index b5c3175dc2c..c4e670833df 100644 --- a/lib/ns/client.c +++ b/lib/ns/client.c @@ -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);