am eae1f1fb
: Merge "res_send: Avoid spurious close()s and (rare) failure"
* commit 'eae1f1fba33cb105302227b044a14e5abcbe55e7': res_send: Avoid spurious close()s and (rare) failure
This commit is contained in:
commit
b00d7a331c
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ res_nsend(res_state statp,
|
|||
if (EXT(statp).nssocks[ns] == -1)
|
||||
continue;
|
||||
peerlen = sizeof(peer);
|
||||
if (getsockname(EXT(statp).nssocks[ns],
|
||||
if (getpeername(EXT(statp).nssocks[ns],
|
||||
(struct sockaddr *)(void *)&peer, &peerlen) < 0) {
|
||||
needclose++;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue