From 1fab8a997ef035915bbac8e45884c04206e9ede9 Mon Sep 17 00:00:00 2001 From: chip Date: Sun, 30 Apr 2000 04:00:18 +0000 Subject: [PATCH] Really reuse ports, even when mountd is run without '-p'. --- support/nfs/rpcmisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5