mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Handle NULL input to protover_compute_for_old_tor()
Fixes bug 24245; bugfix on 0.2.9.4-alpha. TROVE-2017-010.
This commit is contained in:
@@ -694,6 +694,11 @@ protocol_list_contains(const smartlist_t *protos,
|
||||
const char *
|
||||
protover_compute_for_old_tor(const char *version)
|
||||
{
|
||||
if (version == NULL) {
|
||||
/* No known version; guess the oldest series that is still supported. */
|
||||
version = "0.2.5.15";
|
||||
}
|
||||
|
||||
if (tor_version_as_new_as(version,
|
||||
FIRST_TOR_VERSION_TO_ADVERTISE_PROTOCOLS)) {
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user