From b8fc9721001b6d6b53d272be32b0bf80248cb2ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= <martin@v.loewis.de>
Date: Wed, 24 Oct 2001 17:35:46 +0000
Subject: Fix typo. Thanks to Jack Jansen for spotting it.

---
 Modules/socketmodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
cgit v0.12

