aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2020-01-15 17:18:30 +0000
committerteor <teor@torproject.org>2020-02-12 12:21:41 +1000
commitb9c7c61ea5233854ff83257a8bc530b7e0a50351 (patch)
tree08a2cbfc19ae22f6cad29b06f652405112d880e5 /src/app
parent88723ad1694a96bdbb713ccb5bb47a9f5acdc8bd (diff)
downloadtor-b9c7c61ea5233854ff83257a8bc530b7e0a50351.tar.gz
tor-b9c7c61ea5233854ff83257a8bc530b7e0a50351.zip
Lowercase the BridgeDistribution value from torrc in descriptors.
This patch ensures that we always lowercase the BridgeDistribution from torrc in descriptors before submitting it. See: https://bugs.torproject.org/32753
Diffstat (limited to 'src/app')
-rw-r--r--src/app/config/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 0b1b758d96..cbca7d3899 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -6839,7 +6839,7 @@ check_bridge_distribution_setting(const char *bd)
};
unsigned i;
for (i = 0; i < ARRAY_LENGTH(RECOGNIZED); ++i) {
- if (!strcmp(bd, RECOGNIZED[i]))
+ if (!strcasecmp(bd, RECOGNIZED[i]))
return 0;
}