]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/nfsmount.c
Fixed a segfault in the mount.nfs command
[nfs-utils.git] / utils / mount / nfsmount.c
index 3d2ebb1066137a2733fe4616c36d097b821e3092..f2e0e009658ab8ac90a990a376862570d7c6edb0 100644 (file)
@@ -714,7 +714,7 @@ nfsmount(const char *spec, const char *node, int flags,
                        rpc_mount_errors(*nfs_server.hostname, 1, bg);
        }
 
-       if (nfs_pmap->pm_vers == 2) {
+       if (mnt_pmap->pm_vers <= 2) {
                if (mntres.nfsv2.fhs_status != 0) {
                        nfs_error(_("%s: %s:%s failed, reason given by server: %s"),
                                        progname, hostname, dirname,