X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E6565DC003D for ; Mon, 22 Dec 2014 16:12:20 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id h11so8382179wiw.15 for ; Mon, 22 Dec 2014 08:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version; bh=Q+YYQ9hBqVM9zJ4tSVEHGBOSEWCTEFdMayk+fwky7Q8=; b=aO6Jo3SDfU8qL4kU4JmFLzAeAmrlDnkjhHsV8rfr2Kt4Ls0gBA1HV7XaqhiEE46woa EblaHS6cggKBkDi6rv3ETkRSQCgSyIwwkVw0KNKWuRLyWzPIUBCwiSClcfAwXBPYeS57 U2M+b8DOmrTN5sfP/r0S+kqQkYQSU6im4c7MTRM8tzQrvHA/EXDmcCfl5HurRvfPNDdG +0/Vh2mwNRzkmUmZMZ7gjlkXwNTo/Gxqf0L1xDSNr+yyQREil7Qj8rhKsmiZx5ZM9wOF pg3XPs8VxY71eA1UJCbO/h6ZZsS++JnM+VqGOTptax0B4PkOB+B3JAK0Yy04mLBgWshx OcVw== X-Received: by 10.180.20.242 with SMTP id q18mr31950162wie.80.1419264739612; Mon, 22 Dec 2014 08:12:19 -0800 (PST) Received: from [10.44.65.254] (93-57-120-162.ip164.fastwebnet.it. [93.57.120.162]) by mx.google.com with ESMTPSA id gf6sm24238603wjc.11.2014.12.22.08.12.17 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Mon, 22 Dec 2014 08:12:18 -0800 (PST) Message-ID: <1419264733.22778.8.camel@df1844j> Subject: Re: [alpine-devel] SpamAssassin DNSBL tests fail after changes in perl (patch included) From: Leonardo Arena To: Johan Dahlberg Cc: alpine-devel@lists.alpinelinux.org Date: Mon, 22 Dec 2014 17:12:13 +0100 In-Reply-To: <20141217094939.GA7838@einstein.local> References: <20141217094939.GA7838@einstein.local> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-bq/grFoadktL/Y+pQbYx" X-Mailer: Evolution 3.10.4-0ubuntu2 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 --=-bq/grFoadktL/Y+pQbYx Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On mer, 2014-12-17 at 11:49 +0200, Johan Dahlberg wrote: > --- SpamAssassin/DnsResolver.pm.bak > +++ SpamAssassin/DnsResolver.pm > @@ -204,8 +204,10 @@ > @ns_addr_port =3D @{$self->{conf}->{dns_servers}}; > dbg("dns: servers set by config to: %s", join(', > ',@ns_addr_port)); > } elsif ($res) { # default as provided by Net::DNS, e.g. > /etc/resolv.conf > - @ns_addr_port =3D map(untaint_var("[$_]:" . $res->{port}), > - @{$res->{nameservers}}); > + my @ns =3D $res->UNIVERSAL::can('nameservers') ? $res->nameservers > + : > @{$res->{nameservers}}; > + my $port =3D $res->UNIVERSAL::can('port') ? $res->port : > $res->{port}; > + @ns_addr_port =3D map(untaint_var("[$_]:" . $port), @ns); > dbg("dns: servers obtained from Net::DNS : %s", join(', > ',@ns_addr_port)); > } > return @ns_addr_port; Hi, thanks for your contribution. Would it be possible to have a GIT patch? It would be easier and 100% error-free to apply. Thanks! R, leo --=-bq/grFoadktL/Y+pQbYx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJUmELdAAoJELAPckZGG2T6NLwH/3KhhYd3hVUSB62YCMjUUuQG EbLLumLdeWi3u3qgefzdiOeTjy5g/pt4Gxcd125wAJDgxxbAZfoenVl23l0WUry1 m/v77dckva2lkLHI/AGJ/e5/pjt7Qr4sc4eaFv2bA6YlEpBzJ2uLjXIKIOGqf1h7 1aTvVirLSaKaYpy/CF3wxY4BQavVkS/GAq1T0CZtlXTYqlmnsWdKs+b6jF6aK72x AaKtkTLYefYfp2vHLR8SBv7BXFI0Wr9Y58JB7tnHT0tfrctENayoLreMSwVsUSHO cmgEmvtaKyAP9FsW7d2d7pR759TTHxMAzvhbL486o4XHH6SfuC0CiiUDrenSE0A= =40dh -----END PGP SIGNATURE----- --=-bq/grFoadktL/Y+pQbYx-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---