mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Call listen(2) on bound tcp sockets before passing them to svc_tli_create.
This commit is contained in:
parent
ce62b59c88
commit
0e7cce1381
2 changed files with 6 additions and 0 deletions
|
|
@ -519,6 +519,9 @@ create_service(struct netconfig *nconf)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (nconf->nc_semantics != NC_TPI_CLTS)
|
||||
listen(fd, SOMAXCONN);
|
||||
|
||||
transp = svc_tli_create(fd, nconf, NULL,
|
||||
RPC_MAXDATASIZE, RPC_MAXDATASIZE);
|
||||
|
||||
|
|
|
|||
|
|
@ -367,6 +367,9 @@ create_service(struct netconfig *nconf)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (nconf->nc_semantics != NC_TPI_CLTS)
|
||||
listen(sock, SOMAXCONN);
|
||||
|
||||
transp = svc_tli_create(fd, nconf, NULL,
|
||||
RPC_MAXDATASIZE, RPC_MAXDATASIZE);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue