From d637c9cc0347634275ba5f425ae0d2ea34d1e95e Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 19 Mar 2018 18:15:52 +0530 Subject: [PATCH] Fix length of integer that's shifted by DNS_RPZ_ZMASK() --- lib/dns/include/dns/rpz.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/include/dns/rpz.h b/lib/dns/include/dns/rpz.h index 64311550d2..245b0ea47d 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.