BUG 5107: Fix handling of large DNS replies on AIX and Solaris.
authorGerald W. Carter <jerry@samba.org>
Wed, 30 Apr 2008 14:57:15 +0000 (09:57 -0500)
committerGerald W. Carter <jerry@samba.org>
Wed, 30 Apr 2008 15:29:56 +0000 (10:29 -0500)
commit3c709e20772333f64501747107bbb70d43f6f262
treed4d8904e9366c4b6fa5106262303a304b378fa07
parent6c8f19cd6cc21106a71ab9d6bca5de76c71f0bca
BUG 5107: Fix handling of large DNS replies on AIX and Solaris.

On AIX, Solaris, and possibly some older glibc systems (e.g. SLES8)
truncated replies never give back a resp_len > buflen
which ends up causing DNS resolve failures on large tcp DNS replies.

Also add more debug lines about processing the DNS reply.

(cherry-picked from 5ed9b92097460cd8180db806a08213e97cfb8daa
 with manually resolved conflicts)
source/libads/dns.c