From: Y7n05h Date: Fri, 3 Jun 2022 18:38:56 +0000 (+0800) Subject: Update pdns/bpf-filter.hh X-Git-Tag: auth-4.8.0-alpha0~66^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2f145aaf9d52115f67be5063987725d59e4d9ec;p=thirdparty%2Fpdns.git Update pdns/bpf-filter.hh Co-authored-by: Remi Gacogne --- diff --git a/pdns/bpf-filter.hh b/pdns/bpf-filter.hh index c2ee359feb..ba69407292 100644 --- a/pdns/bpf-filter.hh +++ b/pdns/bpf-filter.hh @@ -136,7 +136,7 @@ private: struct in6_addr addr; CIDR6(Netmask address) { - if (address.isIPv6()) { + if (!address.isIPv6()) { throw std::runtime_error("ComboAddress is invalid"); } addr = address.getNetwork().sin6.sin6_addr;