mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
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:
parent
e5ed434c42
commit
c5b3a8db84
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user