dtlsconnection: Clear error queue before SSL_do_handshake
As documented on [the SSL_get_error manpage][1] we need to empty the error queue before making any call that we check with SSL_get_error. [1]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_error.html
This commit is contained in:
parent
fa92909d0d
commit
49cc7b8091
@ -716,6 +716,7 @@ openssl_poll (GstDtlsConnection * self)
|
||||
|
||||
log_state (self, "poll: before handshake");
|
||||
|
||||
ERR_clear_error ();
|
||||
ret = SSL_do_handshake (self->priv->ssl);
|
||||
|
||||
log_state (self, "poll: after handshake");
|
||||
|
Loading…
x
Reference in New Issue
Block a user