]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/mount_dispatch.c
tcpwrapper: Add support for IPv6
[nfs-utils.git] / utils / mountd / mount_dispatch.c
index e87831a6969412c2abe450dda8afffaf1ed7f811..ba6981defd9456c9621e08b2074ce947a45860c0 100644 (file)
@@ -4,7 +4,9 @@
  * Copyright (C) 1995 Olaf Kirch <okir@monad.swb.de>
  */
 
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #ifdef HAVE_TCP_WRAPPER
 #include "tcpwrapper.h"
@@ -71,8 +73,7 @@ mount_dispatch(struct svc_req *rqstp, SVCXPRT *transp)
 
 #ifdef HAVE_TCP_WRAPPER
        /* remote host authorization check */
-       if (!check_default("mountd", svc_getcaller(transp),
-                          rqstp->rq_proc, MOUNTPROG)) {
+       if (!check_default("mountd", nfs_getrpccaller(transp), MOUNTPROG)) {
                svcerr_auth (transp, AUTH_FAILED);
                return;
        }