mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
check accept actually succeeded
This commit is contained in:
1 parent
591cfc9a8a
commit
f7f712341f
2 files changed
+8
-1
No files matched your search
@@ -1,8 +1,14 @@
|
||||
v1.23.0:
|
||||
|
||||
v1.23.x:
|
||||
Obsolete. Please use v2.0 or above. This is a branch
|
||||
where no new features will be introduced, only
|
||||
bugfixes to versions below 1.22.
|
||||
|
||||
v1.23.1:
|
||||
Check accept() for failure in sslh-fork. Aborted
|
||||
connections otherwise result in crashes.
|
||||
|
||||
v1.23.0:
|
||||
Reintroduce --ssl as alias to --tls.
|
||||
|
||||
|
||||
|
||||
@@ -179,6 +179,7 @@ void tcp_listener(struct listen_endpoint* endpoint, int num_endpoints, int activ
|
||||
|
||||
while (1) {
|
||||
in_socket = accept(endpoint[active_endpoint].socketfd, 0, 0);
|
||||
if (in_socket == -1) continue;
|
||||
if (cfg.verbose) fprintf(stderr, "accepted fd %d\n", in_socket);
|
||||
|
||||
switch(fork()) {
|
||||
|
||||
Reference in new issue
Block a user