projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused files from source tree.
[openvswitch]
/
lib
/
stream-ssl.c
diff --git
a/lib/stream-ssl.c
b/lib/stream-ssl.c
index 462ac4283e0be928023c669c1a6075840a22c58a..c2a77a008a7840e679f9d4e68d4c3c5f80bf5930 100644
(file)
--- a/
lib/stream-ssl.c
+++ b/
lib/stream-ssl.c
@@
-478,6
+478,11
@@
ssl_close(struct stream *stream)
* background. */
SSL_shutdown(sslv->ssl);
* background. */
SSL_shutdown(sslv->ssl);
+ /* SSL_shutdown() might have signaled an error, in which case we need to
+ * flush it out of the OpenSSL error queue or the next OpenSSL operation
+ * will falsely signal an error. */
+ ERR_clear_error();
+
SSL_free(sslv->ssl);
close(sslv->fd);
free(sslv);
SSL_free(sslv->ssl);
close(sslv->fd);
free(sslv);