Skip to content

Commit

Permalink
[BZ #10128]
Browse files Browse the repository at this point in the history
2009-05-05  Aurelien Jarno  <aurelien@aurel32.net>
	[BZ #10128]
	* resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
	or FORMERR and the other NOERROR, don't raise an error.
  • Loading branch information
Ulrich Drepper committed May 9, 2009
1 parent 23b6b46 commit cf4f16c
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2009-05-05 Aurelien Jarno <aurelien@aurel32.net>

[BZ #10128]
* resolv/res_query.c (__libc_res_nquery): If one query returns NOTIMP
or FORMERR and the other NOERROR, don't raise an error.

2009-05-06 Ryan S. Arnold <rsa@us.ibm.com>

[BZ #10118]
7 changes: 7 additions & 0 deletions resolv/res_query.c
Original file line number Diff line number Diff line change
@@ -289,6 +289,13 @@ __libc_res_nquery(res_state statp,
break;
case FORMERR:
case NOTIMP:
/* Servers must not reply to AAAA queries with
NOTIMP etc but some of them do. */
if ((hp->rcode == NOERROR && ntohs (hp->ancount) != 0)
|| (hp2->rcode == NOERROR
&& ntohs (hp2->ancount) != 0))
goto success;
/* FALLTHROUGH */
case REFUSED:
default:
RES_SET_H_ERRNO(statp, NO_RECOVERY);

0 comments on commit cf4f16c

Please sign in to comment.