X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fnetwork.c;h=38d0135b799000ea7c70814fe6f57a0a86783220;hb=2d77e3a27b7b211f303fcc3a813a044838dad970;hp=2b09457524e9fa0754c3e93115456c6b5ca82407;hpb=d4b159620b26dce8f83d41358d618ccc82fa82d4;p=nfs-utils.git diff --git a/utils/mount/network.c b/utils/mount/network.c index 2b09457..38d0135 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -494,7 +494,7 @@ int probe_bothports(clnt_addr_t *mnt_server, clnt_addr_t *nfs_server) for (; *probe_vers; probe_vers++) { nfs_pmap->pm_vers = mntvers_to_nfs(*probe_vers); if ((res = probe_nfsport(nfs_server) != 0)) { - mnt_pmap->pm_vers = nfsvers_to_mnt(nfs_pmap->pm_vers); + mnt_pmap->pm_vers = *probe_vers; if ((res = probe_mntport(mnt_server)) != 0) return 1; memcpy(mnt_pmap, &save_mnt, sizeof(*mnt_pmap));