]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/mount_dispatch.c
nfsidmap: Added Error Logging
[nfs-utils.git] / utils / mountd / mount_dispatch.c
index 199fcece4f4682fb51e27dff87e42847b2096a47..ba6981defd9456c9621e08b2074ce947a45860c0 100644 (file)
@@ -70,12 +70,10 @@ mount_dispatch(struct svc_req *rqstp, SVCXPRT *transp)
 {
        union mountd_arguments  argument;
        union mountd_results    result;
-#ifdef HAVE_TCP_WRAPPER
-       struct sockaddr_in *sin = nfs_getrpccaller_in(transp);
 
+#ifdef HAVE_TCP_WRAPPER
        /* remote host authorization check */
-       if (sin->sin_family == AF_INET &&
-           !check_default("mountd", sin, rqstp->rq_proc, MOUNTPROG)) {
+       if (!check_default("mountd", nfs_getrpccaller(transp), MOUNTPROG)) {
                svcerr_auth (transp, AUTH_FAILED);
                return;
        }