mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Don't crash if we get an unexpected value for the
PublishServerDescriptor config option. Reported by Matt Edman; bugfix on 0.2.0.9-alpha. svn:r12549
This commit is contained in:
parent
094096d320
commit
a54ce34e35
@ -3,6 +3,9 @@ Changes in version 0.2.0.13-alpha - 2007-11-??
|
||||
- The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
|
||||
consensus documents when there are too many relays at a single
|
||||
IP address. Now clear it in v2 network status documents too.
|
||||
- Don't crash if we get an unexpected value for the
|
||||
PublishServerDescriptor config option. Reported by Matt Edman;
|
||||
bugfix on 0.2.0.9-alpha.
|
||||
|
||||
|
||||
Changes in version 0.2.0.12-alpha - 2007-11-16
|
||||
|
@ -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)) {
|
||||
r = tor_snprintf(buf, sizeof(buf),
|
||||
"Unrecognized value '%s' for PublishServerDescriptor",
|
||||
(char*)smartlist_get(options->PublishServerDescriptor, -i));
|
||||
"Unrecognized value for PublishServerDescriptor");
|
||||
*msg = tor_strdup(r >= 0 ? buf : "internal error");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user