X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnetwork.c;h=5b515c30d76d26a79839331d5db7dd2b7840f6e3;hp=1759c1cdbc732b341494ee0b7f56aea77bc63e36;hb=17962b82afb68ca8e6b0d3f432d36c6c7c4980ea;hpb=73c61fa5cd114fa6eae0e095724ed63aa66a4a6b diff --git a/utils/mount/network.c b/utils/mount/network.c index 1759c1c..5b515c3 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -1521,7 +1521,11 @@ nfs_mount_protocol(struct mount_options *options, unsigned long *protocol) * set @protocol to zero. The pmap protocol value will * be filled in later by an rpcbind query in this case. */ - return nfs_nfs_protocol(options, protocol); + if (!nfs_nfs_protocol(options, protocol)) + return 0; + if (*protocol == NFSPROTO_RDMA) + *protocol = IPPROTO_TCP; + return 1; } /*