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 b994fb1..527070b 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;