]> granicus.if.org Git - libevent/commit
Keep openssl errors associated with the right bufferevent object.
authorNick Mathewson <nickm@torproject.org>
Fri, 30 Oct 2009 21:08:29 +0000 (21:08 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 30 Oct 2009 21:08:29 +0000 (21:08 +0000)
commit516452b71a4450f7201bc1a6bd31878c68a81e57
tree16b722ef8a7a9aa0ba85f356bb68c544518a12d9
parent20f5bdfd6b9c0f51c56f55a9bd349c35576fafc8
Keep openssl errors associated with the right bufferevent object.

OpenSSL has a per-thread error stack, and really doesn't like you
leaving errors on the stack.  Rather than discard the errors or force
the user to handle them, this patch pulls them off the openssl stack
and puts them on a stack associated with the bufferevent_openssl.  If
the user leaves them on the stack then, it won't affect any other
connections.

This bug was found by Roman Puls.  Thanks!

svn:r1481
bufferevent_openssl.c
include/event2/bufferevent_ssl.h
sample/le-proxy.c