X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fhostname.c;fp=utils%2Fstatd%2Fhostname.c;h=38f22650c61e50f3447ba4aebf64b57936584325;hp=7d704cc6654c67c8bdf7e14e70967dfdf7776d34;hb=e22f5a9c8e53a2373e8a939771e964ad315cdc5f;hpb=1bb84a09ff58d1314826945db2f3f1f63015e263 diff --git a/utils/statd/hostname.c b/utils/statd/hostname.c index 7d704cc..38f2265 100644 --- a/utils/statd/hostname.c +++ b/utils/statd/hostname.c @@ -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); }