diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-10-24 17:35:46 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-10-24 17:35:46 (GMT) |
commit | b8fc9721001b6d6b53d272be32b0bf80248cb2ba (patch) | |
tree | 257c8fe38d169e78f199e22347ef664d4ad8374a /Modules | |
parent | eb9b1032960dd47916ea31fe77f1c993e26c69f9 (diff) | |
download | cpython-b8fc9721001b6d6b53d272be32b0bf80248cb2ba.zip cpython-b8fc9721001b6d6b53d272be32b0bf80248cb2ba.tar.gz cpython-b8fc9721001b6d6b53d272be32b0bf80248cb2ba.tar.bz2 |
Fix typo. Thanks to Jack Jansen for spotting it.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index f700e9c..377c792 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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; |