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