]> granicus.if.org Git - libevent/commit
When closing a filtering bufferevent, clear callbacks on the underlying bufferevent
authorNick Mathewson <nickm@torproject.org>
Tue, 9 Nov 2010 16:43:47 +0000 (11:43 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 9 Nov 2010 16:43:47 +0000 (11:43 -0500)
commitfc7b1b005c906d720e03975224ae809974402f55
tree2a9e18e586feb940288290518214fe6047af72fb
parent5c8a59e8867a45b5791e45a548a73eb135a6a3ea
When closing a filtering bufferevent, clear callbacks on the underlying bufferevent

Previously, if BEV_OPT_CLOSE_ON_FREE wasn't set on a
bufferevent_filter or a filtering bufferevent_openssl, when we went
to free the filtering bufferevent, we'd leave the underlying
bufferevent unchanged.  That's not so good, since the callbacks are
set to activate stuff in the filtering bufferevent that we're about
to free.  Instead, set all the callbacks to NULL.
bufferevent_filter.c
bufferevent_openssl.c