|
@@ -2821,11 +2821,10 @@ options_validate(or_options_t *old_options, or_options_t *options,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- if ((i = parse_authority_type_from_list(options->PublishServerDescriptor,
|
|
+ if ((parse_authority_type_from_list(options->PublishServerDescriptor,
|
|
&options->_PublishServerDescriptor, 1) < 0)) {
|
|
&options->_PublishServerDescriptor, 1) < 0)) {
|
|
r = tor_snprintf(buf, sizeof(buf),
|
|
r = tor_snprintf(buf, sizeof(buf),
|
|
- "Unrecognized value '%s' for PublishServerDescriptor",
|
|
+ "Unrecognized value for PublishServerDescriptor");
|
|
- (char*)smartlist_get(options->PublishServerDescriptor, -i));
|
|
|
|
*msg = tor_strdup(r >= 0 ? buf : "internal error");
|
|
*msg = tor_strdup(r >= 0 ? buf : "internal error");
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|