mirror of
https://github.com/python/cpython.git
synced 2024-12-03 23:06:43 +08:00
Fix typo. Thanks to Jack Jansen for spotting it.
This commit is contained in:
parent
eb9b103296
commit
b8fc972100
@ -622,7 +622,7 @@ setipaddr(char* name, struct sockaddr * addr_ret, int af)
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = af;
|
||||
error = getaddrinfo(name, NULL, &hints, &res);
|
||||
if (error = EAI_NONAME && af == AF_UNSPEC) {
|
||||
if (error == EAI_NONAME && af == AF_UNSPEC) {
|
||||
/* On OSF/1 V5.1, numeric-to-addr conversion
|
||||
fails if no address family is given. Assume IPv4 for now.*/
|
||||
hints.ai_family = AF_INET;
|
||||
|
Loading…
Reference in New Issue
Block a user