X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fauth.c;h=9de7ba7165be898094252fd5861e3fa1b1e43749;hp=6361fcebb13f6f1170c791ba9e65752e8416e5f6;hb=fcb905a5392c31a4c31e7d9e616e691d61358731;hpb=af93e0306d87bba3f703386fd6390e9bf8e76816 diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c index 6361fce..9de7ba7 100644 --- a/utils/mountd/auth.c +++ b/utils/mountd/auth.c @@ -80,6 +80,7 @@ auth_authenticate_internal(char *what, struct sockaddr_in *caller, my_client.m_naddr = 0; my_client.m_addrlist[0] = caller->sin_addr; n = client_compose(caller->sin_addr); + *error = unknown_host; if (!n) return NULL; strcpy(my_client.m_hostname, *n?n:"DEFAULT");