From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3956 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: dn_expand() confuses postfix Date: Sun, 25 Aug 2013 02:43:21 -0400 Message-ID: <20130825064321.GT20515@brightrain.aerifal.cx> References: <20130814021920.7e719d8f@sibserver.ru> <20130814220625.GT221@brightrain.aerifal.cx> <20130815141422.3bc4502c@sibserver.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1377413015 29075 80.91.229.3 (25 Aug 2013 06:43:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Aug 2013 06:43:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3960-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 25 08:43:38 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VDU2y-00087G-KL for gllmg-musl@plane.gmane.org; Sun, 25 Aug 2013 08:43:36 +0200 Original-Received: (qmail 28013 invoked by uid 550); 25 Aug 2013 06:43:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28005 invoked from network); 25 Aug 2013 06:43:35 -0000 Content-Disposition: inline In-Reply-To: <20130815141422.3bc4502c@sibserver.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3956 Archived-At: On Thu, Aug 15, 2013 at 02:14:22PM +0800, orc wrote: > Other issue now: > > ../test_dns_lookup: lookup yandex.ru type MX flags 2 > ../test_dns_lookup: dns_query: yandex.ru (MX): OK > ../test_dns_lookup: warning: valid_hostname: invalid character 6(decimal): ?yande.?r > ../test_dns_lookup: warning: malformed domain name in resource name of MX record for ?yande.?r: ?yande.?r > ../test_dns_lookup: fatal: Name service error for name=yandex.ru type=MX: Malformed or unexpected name server reply > > ../test_dns_lookup: lookup ya.ru type MX flags 2 > ../test_dns_lookup: dns_query: ya.ru (MX): OK > ../test_dns_lookup: warning: valid_hostname: invalid character 2(decimal): ?y.?r > ../test_dns_lookup: warning: malformed domain name in resource name of MX record for ?y.?r: ?y.?r > ../test_dns_lookup: fatal: Name service error for name=ya.ru type=MX: Malformed or unexpected name server reply > > temp buffer at src/dns/dns_lookup.c:287 is messed up with these. I believe this was actually a nasty regression in the dn_expand "fix" -- somehow I thought my tests were checking reverse dns, but they weren't, and the new code actually had a bad off-by-one error. It should be fixed now. Let me know if you're still experiencing problems. Rich