]> andersk Git - openssh.git/blobdiff - fake-getaddrinfo.c
- (djm) Clean up. Strip some unnecessary differences with OpenBSD's code,
[openssh.git] / fake-getaddrinfo.c
index c9bc03a3549bbd9f78f6d3dff90494c0f3687a73..73c122ed11776cd01c3397ed4ad07b3c1aea43b6 100644 (file)
@@ -87,7 +87,7 @@ int getaddrinfo(const char *hostname, const char *servname,
                        return EAI_MEMORY;
        }
        
-       if (inet_aton(hostname, &in) != -1) {
+       if (inet_aton(hostname, &in)) {
                if (NULL != (*res = malloc_ai(port, in.s_addr)))
                        return 0;
                else
This page took 0.029702 seconds and 4 git commands to generate.