Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Luke Bratch
blabouncer
Commits
d0c2d49c
Commit
d0c2d49c
authored
Jan 05, 2020
by
Luke Bratch
Browse files
Have openssl_accept return 0 if fd_toggle_blocking failed.
parent
4fd155cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
sockets.c
View file @
d0c2d49c
...
...
@@ -301,6 +301,7 @@ int openssl_accept(int fd, struct client *clients, struct ircdstate *ircdstate,
if
(
!
fd_toggle_blocking
(
clients
[
clientindex
].
fd
,
1
))
{
debugprint
(
DEBUG_CRIT
,
"fd_toggle_blocking off failed for fd %d: %s.
\n
"
,
clients
[
clientindex
].
fd
,
strerror
(
errno
));
disconnectclient
(
clients
[
clientindex
].
fd
,
clients
,
ircdstate
,
settings
,
clientcodes
);
return
0
;
}
// And mark as no longer pending SSL_accept()
clients
[
clientindex
].
pendingsslaccept
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment