[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #10409 [Tor]: breaks on corrupted caches
#10409: breaks on corrupted caches
------------------------+--------------------------------
Reporter: weasel | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor | Version: Tor: 0.2.4.18-rc
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
------------------------+--------------------------------
Changes (by arma):
* cc: nickm (added)
Comment:
{{{
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 299d07d..f934d44 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -4444,6 +4444,8 @@ microdescs_parse_from_string(const char *s, const
char *e
md = NULL;
next:
+ if (!copy_body)
+ md->body = NULL;
microdesc_free(md);
md = NULL;
}}}
fixes it for me. But maybe there is a smarter / more right fix.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10409#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs