From: Mukund Sivaraman Date: Mon, 19 Mar 2018 12:45:52 +0000 (+0530) Subject: Fix length of integer that's shifted by DNS_RPZ_ZMASK() X-Git-Tag: v9.13.0~80^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d637c9cc0347634275ba5f425ae0d2ea34d1e95e;p=thirdparty%2Fbind9.git Fix length of integer that's shifted by DNS_RPZ_ZMASK() --- diff --git a/lib/dns/include/dns/rpz.h b/lib/dns/include/dns/rpz.h index 64311550d22..245b0ea47d7 100644 --- a/lib/dns/include/dns/rpz.h +++ b/lib/dns/include/dns/rpz.h @@ -94,7 +94,7 @@ typedef isc_uint64_t dns_rpz_zbits_t; * Avoid hassles with (1<<33) or (1<<65) */ #define DNS_RPZ_ZMASK(n) ((dns_rpz_zbits_t)((((n) >= DNS_RPZ_MAX_ZONES-1) ? \ - 0 : (1<<((n)+1))) -1)) + 0 : (1ULL<<((n)+1))) -1)) /* * The trigger counter type.