X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fhostname.c;h=38f22650c61e50f3447ba4aebf64b57936584325;hb=0e6df494958aa3d975cca4e972c32de0b1733def;hp=7d704cc6654c67c8bdf7e14e70967dfdf7776d34;hpb=6295bb04c73403a219bc96cc6770fc96bec19ba6;p=nfs-utils.git 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); }