diff options
author | Peter Palfrader <peter@palfrader.org> | 2007-05-28 21:34:42 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2007-05-28 21:34:42 +0000 |
commit | 3425f2c11f3d550f241514eebfa5e1ecbb835e89 (patch) | |
tree | 5b5ffb9aebab1a7d838d2f90860f39fb815f3a89 /src/or/dirserv.c | |
parent | 7ba1d9f3c879279a2d549d10ed429d0ae44057e6 (diff) | |
download | tor-3425f2c11f3d550f241514eebfa5e1ecbb835e89.tar tor-3425f2c11f3d550f241514eebfa5e1ecbb835e89.tar.gz |
Segfault less. Somebody needs to look over why exactly this helps. re #436
svn:r10376
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 050570b54..fb2dc6dc5 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -528,6 +528,7 @@ dirserv_add_multiple_descriptors(const char *desc, const char **msg) list = smartlist_create(); if (!router_parse_list_from_string(&s, NULL, list, SAVED_NOWHERE, 0)) { SMARTLIST_FOREACH(list, routerinfo_t *, ri, { + msg_out = NULL; r_tmp = dirserv_add_descriptor(ri, &msg_out); if (r_tmp < r) { r = r_tmp; @@ -541,6 +542,7 @@ dirserv_add_multiple_descriptors(const char *desc, const char **msg) s = desc; if (!router_parse_list_from_string(&s, NULL, list, SAVED_NOWHERE, 1)) { SMARTLIST_FOREACH(list, extrainfo_t *, ei, { + msg_out = NULL; r_tmp = dirserv_add_extrainfo(ei, &msg_out); if (r_tmp < r) { r = r_tmp; |