]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
bug fix
authorneilbrown <neilbrown>
Thu, 22 May 2003 05:20:10 +0000 (05:20 +0000)
committerneilbrown <neilbrown>
Thu, 22 May 2003 05:20:10 +0000 (05:20 +0000)
ChangeLog
utils/mountd/auth.c

index b7da6911b621e2fac6b641b54fce6bbeae5d3fbb..09277b3a5a95254ee2674b15b75d6b4e6988b886 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-22  NeilBrown <neilb@cse.unsw.edu.au>
+
+       * utils/mountd/auth.c(auth_authenticate_internal): make sure
+       portnumber is still checked when using new cache lookup.
+       
 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
 
        * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
 
        * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
index e92138918d4b36b91201628f3e1ed884c9954910..f968b07f906317642a4d438e8b40f7f8b653ee22 100644 (file)
@@ -114,13 +114,12 @@ auth_authenticate_internal(char *what, struct sockaddr_in *caller,
                        *error = not_exported;
                        return NULL;
                }
                        *error = not_exported;
                        return NULL;
                }
-
-               if (!(exp->m_export.e_flags & NFSEXP_INSECURE_PORT) &&
+       }
+       if (!(exp->m_export.e_flags & NFSEXP_INSECURE_PORT) &&
                    (ntohs(caller->sin_port) <  IPPORT_RESERVED/2 ||
                     ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
                    (ntohs(caller->sin_port) <  IPPORT_RESERVED/2 ||
                     ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
-                       *error = illegal_port;
-                       return NULL;
-               }
+               *error = illegal_port;
+               return NULL;
        }
        *error = success;
 
        }
        *error = success;