summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-11 18:36:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-11 18:36:39 +0000
commit494f96fddf425671b008805ec74f04ff47594757 (patch)
tree23f877e5c5f5b9ea674942bc4ea42cafaef30818 /sbin
parent69090decf3e42c7a755255d654ad20f66b7a62b9 (diff)
use nfsproto variable; tron@lyssa.owl.de
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_nfs/mount_nfs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index 1c3c3c3fd10..9f648aa4c32 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_nfs.c,v 1.13 1997/08/20 05:10:23 millert Exp $ */
+/* $OpenBSD: mount_nfs.c,v 1.14 1997/11/11 18:36:38 deraadt Exp $ */
/* $NetBSD: mount_nfs.c,v 1.12.4.1 1996/05/25 22:48:05 fvdl Exp $ */
/*
@@ -650,8 +650,7 @@ tryagain:
saddr.sin_family = AF_INET;
saddr.sin_port = htons(PMAPPORT);
if ((tport = port_no ? port_no : pmap_getport(&saddr,
- RPCPROG_NFS, nfsvers, nfsargsp->sotype == SOCK_STREAM ?
- IPPROTO_TCP : IPPROTO_UDP)) == 0) {
+ RPCPROG_NFS, nfsvers, nfsproto)) == 0) {
if ((opflags & ISBGRND) == 0)
clnt_pcreateerror("NFS Portmap");
} else {