diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index ee65a271ecf3..5940c4da49b2 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -381,11 +381,6 @@ main(argc, argv) exit(1); } } - if ((udptransp = svcudp_create(RPC_ANYSOCK)) == NULL || - (tcptransp = svctcp_create(RPC_ANYSOCK, 0, 0)) == NULL) { - syslog(LOG_ERR, "can't create socket"); - exit(1); - } if (udpsock != -1 && udpconf != NULL) { bindresvport(udpsock, NULL); udptransp = svc_dg_create(udpsock, 0, 0); diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index ee65a271ecf3..5940c4da49b2 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -381,11 +381,6 @@ main(argc, argv) exit(1); } } - if ((udptransp = svcudp_create(RPC_ANYSOCK)) == NULL || - (tcptransp = svctcp_create(RPC_ANYSOCK, 0, 0)) == NULL) { - syslog(LOG_ERR, "can't create socket"); - exit(1); - } if (udpsock != -1 && udpconf != NULL) { bindresvport(udpsock, NULL); udptransp = svc_dg_create(udpsock, 0, 0);