Fix typo. Thanks to Jack Jansen for spotting it.

This commit is contained in:
Martin v. Löwis 2001-10-24 17:35:46 +00:00
parent eb9b103296
commit b8fc972100
1 changed files with 1 additions and 1 deletions

View 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;