mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -716,6 +716,7 @@ openssl_poll (GstDtlsConnection * self)
|
||||||
|
|
||||||
log_state (self, "poll: before handshake");
|
log_state (self, "poll: before handshake");
|
||||||
|
|
||||||
|
ERR_clear_error ();
|
||||||
ret = SSL_do_handshake (self->priv->ssl);
|
ret = SSL_do_handshake (self->priv->ssl);
|
||||||
|
|
||||||
log_state (self, "poll: after handshake");
|
log_state (self, "poll: after handshake");
|
||||||
|
|
Loading…
Reference in a new issue