am b00d7a33: am eae1f1fb: Merge "res_send: Avoid spurious close()s and (rare) failure"
* commit 'b00d7a331c9f2a578a4cfc4dfe0d626aa58fa702': res_send: Avoid spurious close()s and (rare) failure
This commit is contained in:
commit
5f926c2679
@ -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…
x
Reference in New Issue
Block a user