gresolv: Do not update successful status with unsuccessful one
authorGrant Erickson <marathon96@gmail.com>
Mon, 16 Jul 2012 16:48:09 +0000 (09:48 -0700)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 17 Jul 2012 08:14:45 +0000 (10:14 +0200)
commit42e3cd5263c245ae4f9e454160a35b2267475183
tree908bdde3ceaa421a7772c2f770b5fa6517fd5092
parent043da7360b1036dbcdb995e3b3b9a77da6c31cd5
gresolv: Do not update successful status with unsuccessful one

When performing a resolver lookup from timeserver or wpad, both perform
queries with an unspecified address family. This means that both A and
AAAA record queries are issued. In cases where a valid, successful A
response comes back but where the AAAA query results in a timeout, do
not smash the successful A status with the time out AAAA status;
otherwise, the timeserver or wpad will appear to fail to them when, in
fact, the A query was successful and more than satisfies its unspecified
address family requirement.

Partial fix for BMC#25486.
gweb/gresolv.c