diff options
-rw-r--r-- | support/nfs/rpcmisc.c | 4 |
1 files 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; |