]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo. Thanks to Jack Jansen for spotting it.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 24 Oct 2001 17:35:46 +0000 (17:35 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 24 Oct 2001 17:35:46 +0000 (17:35 +0000)
Modules/socketmodule.c

index f700e9c4e3c2c6b8d1a5e4a9674aee47874cc3a1..377c792ec7277c111d31d5af65d2b3712c797042 100644 (file)
@@ -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;