diff options
author | Jan Alexander Steffens (heftig) <jsteffens@make.tv> | 2018-11-05 12:31:38 +0100 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2018-11-06 16:23:50 +0000 |
commit | 49cc7b809114dff4ceb108b530d4c4592a1b03b9 (patch) | |
tree | dd8dfb3b3fc3723405305a0de8902d781fe42a82 /ext/dtls | |
parent | fa92909d0d39c1cf7cec2abad598f866729e6889 (diff) | |
download | gstreamer-plugins-bad-49cc7b809114dff4ceb108b530d4c4592a1b03b9.tar.gz |
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
Diffstat (limited to 'ext/dtls')
-rw-r--r-- | ext/dtls/gstdtlsconnection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/dtls/gstdtlsconnection.c b/ext/dtls/gstdtlsconnection.c index 6b47460d5..0242aebc5 100644 --- a/ext/dtls/gstdtlsconnection.c +++ b/ext/dtls/gstdtlsconnection.c @@ -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"); |