From: Martin v. Löwis Date: Wed, 24 Oct 2001 17:35:46 +0000 (+0000) Subject: Fix typo. Thanks to Jack Jansen for spotting it. X-Git-Tag: v2.2.1c1~1075 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8fc9721001b6d6b53d272be32b0bf80248cb2ba;p=thirdparty%2FPython%2Fcpython.git Fix typo. Thanks to Jack Jansen for spotting it. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index f700e9c4e3c2..377c792ec727 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;