diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-07 20:56:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-07 21:02:12 -0400 |
commit | 9fe3cd0be34a7fd8ece4da61aefd5eb9201f58ea (patch) | |
tree | 8e106eaf20be9df9315dbd85382e033e3c97d7f0 /src/or/dirserv.c | |
parent | d0f1f9ce9e1b923cdd931a2f22c0fb7e256f0dc6 (diff) | |
download | tor-9fe3cd0be34a7fd8ece4da61aefd5eb9201f58ea.tar.gz tor-9fe3cd0be34a7fd8ece4da61aefd5eb9201f58ea.zip |
Fix a crash bug when serving microdescs on a bufferevent.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 75e3e86109..e0f7481752 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -3457,7 +3457,7 @@ connection_dirserv_add_microdescs_to_outbuf(dir_connection_t *conn) { microdesc_cache_t *cache = get_microdesc_cache(); while (smartlist_len(conn->fingerprint_stack) && - buf_datalen(conn->_base.outbuf) < DIRSERV_BUFFER_MIN) { + connection_get_outbuf_len(TO_CONN(conn)) < DIRSERV_BUFFER_MIN) { char *fp256 = smartlist_pop_last(conn->fingerprint_stack); microdesc_t *md = microdesc_cache_lookup_by_digest256(cache, fp256); tor_free(fp256); |