r13057@catbus: nickm | 2007-05-29 14:39:27 -0400

fix for bug 439: make _sure_ *msg is set when we leave dirserv_add_multiple_descriptors().


svn:r10396
This commit is contained in:
Nick Mathewson 2007-05-29 18:39:56 +00:00
parent e5ed434c42
commit c5b3a8db84

View File

@ -554,6 +554,16 @@ dirserv_add_multiple_descriptors(const char *desc, const char **msg)
n_parsed += smartlist_len(list);
smartlist_free(list);
if (! *msg) {
if (!n_parsed) {
*msg = "No descriptors found in your POST.";
if (r > -1)
r = -1;
} else {
*msg = "(no message)";
}
}
return r <= 2 ? r : 2;
}