]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Really reuse ports, even when mountd is run without '-p'.
authorchip <chip>
Sun, 30 Apr 2000 04:00:18 +0000 (04:00 +0000)
committerchip <chip>
Sun, 30 Apr 2000 04:00:18 +0000 (04:00 +0000)
support/nfs/rpcmisc.c

index b994fb1361fd19e25e4296446ee128e2feccaaf2..527070b352a82c655b324f9081ed441211ddd2cd 100644 (file)
@@ -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;