summaryrefslogtreecommitdiffstats
path: root/utils/mountd/auth.c
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2003-05-22 05:20:10 +0000
committerneilbrown <neilbrown>2003-05-22 05:20:10 +0000
commit5272be95bf48cb4e9f8579105a79522e88b695f4 (patch)
tree6f9574e372a889face7dcb4a409ef1a9e2bfa0b3 /utils/mountd/auth.c
parent2d33968c66860ad772aac918992986fe4865b3a4 (diff)
downloadnfs-utils-5272be95bf48cb4e9f8579105a79522e88b695f4.tar.gz
nfs-utils-5272be95bf48cb4e9f8579105a79522e88b695f4.tar.xz
nfs-utils-5272be95bf48cb4e9f8579105a79522e88b695f4.zip
bug fix
Diffstat (limited to 'utils/mountd/auth.c')
-rw-r--r--utils/mountd/auth.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c
index e921389..f968b07 100644
--- a/utils/mountd/auth.c
+++ b/utils/mountd/auth.c
@@ -114,13 +114,12 @@ auth_authenticate_internal(char *what, struct sockaddr_in *caller,
*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)) {
- *error = illegal_port;
- return NULL;
- }
+ *error = illegal_port;
+ return NULL;
}
*error = success;