From: neilbrown Date: Mon, 6 Sep 2004 02:41:51 +0000 (+0000) Subject: fix uninitialise variable X-Git-Tag: nfs-utils-1-0-6-post4~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=fcb905a5392c31a4c31e7d9e616e691d61358731;p=nfs-utils.git fix uninitialise variable --- diff --git a/ChangeLog b/ChangeLog index 38d9671..b8717a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-06 Trond Myklebust + Neil Brown + + * utils/mountd/auth.c(auth_authenticate_internal): fix + uninitialsed variable problem (causes bad error messages). + 2004-09-06 Paul Clements Neil Brown 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");