]> andersk Git - openssh.git/blobdiff - fake-getnameinfo.c
- Avoid some compiler warnings in fake-get*.c
[openssh.git] / fake-getnameinfo.c
index bf1184e24bc9f9bdb4267a8467d2cbbbf1062a39..f74f3128f725cacd57e2725f9cee3ede8c70fa09 100644 (file)
@@ -46,8 +46,8 @@ int flags;
        return 0;
       }
     else
-      if (hp = gethostbyaddr((char *)&sin->sin_addr, sizeof(struct in_addr),
-                            AF_INET))
+      if (NULL != (hp = gethostbyaddr((char *)&sin->sin_addr, 
+                       sizeof(struct in_addr), AF_INET)))
        if (strlen(hp->h_name) > hostlen)
          return EAI_MEMORY;
        else {
This page took 0.030548 seconds and 4 git commands to generate.