From: chip Date: Sun, 30 Apr 2000 04:00:18 +0000 (+0000) Subject: Really reuse ports, even when mountd is run without '-p'. X-Git-Tag: nfs-utils-0-1-7-2~4 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=1fab8a997ef035915bbac8e45884c04206e9ede9 Really reuse ports, even when mountd is run without '-p'. --- diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c index b994fb1..527070b 100644 --- a/support/nfs/rpcmisc.c +++ b/support/nfs/rpcmisc.c @@ -67,7 +67,7 @@ rpc_init(char *name, int prog, int vers, void (*dispatch)(), int defport, if ((_rpcfdtype == 0) || (_rpcfdtype == SOCK_DGRAM)) { static SVCXPRT *last_transp = NULL; - if (_rpcfdtype == 0 && defport != 0) { + if (_rpcfdtype == 0) { if (last_transp && last_transp->xp_port == defport) { transp = last_transp; goto udp_transport; @@ -92,7 +92,7 @@ rpc_init(char *name, int prog, int vers, void (*dispatch)(), int defport, if ((_rpcfdtype == 0) || (_rpcfdtype == SOCK_STREAM)) { static SVCXPRT *last_transp = NULL; - if (_rpcfdtype == 0 && defport != 0) { + if (_rpcfdtype == 0) { if (last_transp && last_transp->xp_port == defport) { transp = last_transp; goto tcp_transport;