diff options
author | chip <chip> | 2000-04-30 04:14:56 +0000 |
---|---|---|
committer | chip <chip> | 2000-04-30 04:14:56 +0000 |
commit | 646251e68a34cb0d4cf85d4ec24c644227f09727 (patch) | |
tree | a7ef65ac84bc55940198f39531ef449ed5bf6ddd | |
parent | 7ba7be4ba2efeeab031cf2b0ea658ba4295766f0 (diff) | |
download | nfs-utils-646251e68a34cb0d4cf85d4ec24c644227f09727.tar.gz nfs-utils-646251e68a34cb0d4cf85d4ec24c644227f09727.tar.xz nfs-utils-646251e68a34cb0d4cf85d4ec24c644227f09727.zip |
Really(!) finish the port-sharing diff.
-rw-r--r-- | support/nfs/rpcmisc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c index 527070b..457d642 100644 --- a/support/nfs/rpcmisc.c +++ b/support/nfs/rpcmisc.c @@ -68,7 +68,8 @@ rpc_init(char *name, int prog, int vers, void (*dispatch)(), int defport, static SVCXPRT *last_transp = NULL; if (_rpcfdtype == 0) { - if (last_transp && last_transp->xp_port == defport) { + if (last_transp + && (!defport || defport == last_transp->xp_port)) { transp = last_transp; goto udp_transport; } @@ -93,7 +94,8 @@ rpc_init(char *name, int prog, int vers, void (*dispatch)(), int defport, static SVCXPRT *last_transp = NULL; if (_rpcfdtype == 0) { - if (last_transp && last_transp->xp_port == defport) { + if (last_transp + && (!defport || defport == last_transp->xp_port)) { transp = last_transp; goto tcp_transport; } |