mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-09 11:52:11 +03:00
handle accept failure properly (fix #322)
This commit is contained in:
parent
1e0578c082
commit
d922086f53
@ -217,10 +217,10 @@ int cnx_accept_process(struct loop_info* fd_info, struct listen_endpoint* listen
|
|||||||
case SOCK_STREAM:
|
case SOCK_STREAM:
|
||||||
cnx = accept_new_connection(fd, fd_info->collection);
|
cnx = accept_new_connection(fd, fd_info->collection);
|
||||||
|
|
||||||
if (cnx) {
|
if (!cnx) return -1;
|
||||||
|
|
||||||
add_probing_cnx(fd_info, cnx);
|
add_probing_cnx(fd_info, cnx);
|
||||||
new_fd = cnx->q[0].fd;
|
new_fd = cnx->q[0].fd;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SOCK_DGRAM:
|
case SOCK_DGRAM:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user