]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/hostname.c
statd: statd fails to monitor if no reverse mapping of mon_name exists
[nfs-utils.git] / utils / statd / hostname.c
index 7d704cc6654c67c8bdf7e14e70967dfdf7776d34..38f22650c61e50f3447ba4aebf64b57936584325 100644 (file)
@@ -212,7 +212,9 @@ statd_canonical_name(const char *hostname)
                                        buf, (socklen_t)sizeof(buf));
                freeaddrinfo(ai);
                if (!result)
-                       return NULL;
+                       /* OK to use presentation address,
+                        * if no reverse map exists */
+                       return strdup(hostname);
                return strdup(buf);
        }