X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmountd%2Fauth.c;h=f968b07f906317642a4d438e8b40f7f8b653ee22;hb=460ef2f898148fbc858cffe9d2ac12070131d5dd;hp=e92138918d4b36b91201628f3e1ed884c9954910;hpb=1275be70ca6cd6c4bec07a3381f7b510086c5526;p=nfs-utils.git 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;