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:
Jan Alexander Steffens (heftig) 2018-11-05 12:31:38 +01:00 committed by Sebastian Dröge
parent fa92909d0d
commit 49cc7b8091

View file

@ -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");