]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make sure the storage for isc_random32() result is 32-bit long
authorOndřej Surý <ondrej@sury.org>
Tue, 7 Aug 2018 07:52:47 +0000 (09:52 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 7 Aug 2018 07:52:47 +0000 (09:52 +0200)
lib/dns/rdataset.c

index c27f2964eb934fdcb976c661b6c78fd88fb317ac..448e12aa3b7f24df2d3222a42004776288164e06 100644 (file)
@@ -416,7 +416,8 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
                }
                INSIST(i == count);
 
-               unsigned int j, seed;
+               unsigned int j;
+               isc_uint32_t seed;
                if (ISC_LIKELY(want_random)) {
                        seed = isc_random32();
                        j = 0;