Skip to content

Commit

Permalink
SocketTls: the default BIO ctrl response is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
mporsch committed Aug 5, 2023
1 parent 59149c3 commit 0d4c4cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/socket_tls_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ long Ctrl(BIO *, int cmd, long, void *)
//auto *sock = reinterpret_cast<SocketTlsImpl *>(BIO_get_data(b));

switch(cmd) {
case BIO_CTRL_PENDING:
return 0;
case BIO_CTRL_FLUSH:
default:
return 1;
default:
return 0;
}
}

Expand Down

0 comments on commit 0d4c4cd

Please sign in to comment.