]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
fix uninitialise variable
authorneilbrown <neilbrown>
Mon, 6 Sep 2004 02:41:51 +0000 (02:41 +0000)
committerneilbrown <neilbrown>
Mon, 6 Sep 2004 02:41:51 +0000 (02:41 +0000)
ChangeLog
utils/mountd/auth.c

index 38d9671fe6988684ccc5958780ab7d6fc6bce195..b8717a2bd29a36b1b37bb4c7d9186841c33c22a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
+       Neil Brown <neilb@cse.unsw.edu.au>
+
+       * utils/mountd/auth.c(auth_authenticate_internal): fix
+       uninitialsed variable problem (causes bad error messages).
+
 2004-09-06 Paul Clements <paul.clements@steeleye.com>
        Neil Brown <neilb@cse.unsw.edu.au>
 
index 6361fcebb13f6f1170c791ba9e65752e8416e5f6..9de7ba7165be898094252fd5861e3fa1b1e43749 100644 (file)
@@ -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");