Package: postgrey
Version: 1.32-6.1
Severity: normal
Tags: ipv6
postgrey[3863]: WARNING: Argument "2001:470:1f05:eff:f00f:10:14f:40"
isn't numeric in bitwise and (&) at /usr/sbin/postgrey line 47.#012
postgrey[3863]: WARNING: Argument "2001:748:100:40::2:9" isn't numeric
in bitwise and (&) at /usr/sbin/postgrey line 47.#012
postgrey[3863]: WARNING: Argument "2001:748:100:40::2:9" isn't numeric
in bitwise and (&) at /usr/sbin/postgrey line 47.#012
this code is very unfriendly to IPv6 :(
sub cidr_match($$$)
{
my ($net, $mask, $addr) = @_;
return undef unless defined $net and defined $mask and defined
$addr;
if($addr =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/) {
$addr = ($1<<24)+($2<<16)+($3<<8)+$4;
}
return ($addr & $mask) == $net; <-- ERROR
}
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (500, 'unstable'), (50, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37+ (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]