diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-15 23:36:23 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-02-15 23:36:23 +0100 |
commit | e391a0a83f1336478d2171bbae321689b7fe8d03 (patch) | |
tree | 55d2f347612f680dd98953fdbad3bbc1f3abc1ea /src/hostlist | |
parent | 9c0ac480cb4148a0970c915a7d8aadc2ca47874d (diff) | |
download | gnunet-e391a0a83f1336478d2171bbae321689b7fe8d03.tar.gz gnunet-e391a0a83f1336478d2171bbae321689b7fe8d03.zip |
-sanitize utf8 api a bit
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist_client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_client.c b/src/hostlist/gnunet-daemon-hostlist_client.c index 44966d3de..1f7d4cc35 100644 --- a/src/hostlist/gnunet-daemon-hostlist_client.c +++ b/src/hostlist/gnunet-daemon-hostlist_client.c | |||
@@ -1635,7 +1635,11 @@ GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c, | |||
1635 | "PROXY_TYPE", | 1635 | "PROXY_TYPE", |
1636 | &proxytype_str)) | 1636 | &proxytype_str)) |
1637 | { | 1637 | { |
1638 | GNUNET_STRINGS_utf8_toupper (proxytype_str, proxytype_str); | 1638 | if (GNUNET_OK != GNUNET_STRINGS_utf8_toupper (proxytype_str, |
1639 | proxytype_str)) | ||
1640 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
1641 | "Unable to convert `%s' to UTF-8 uppercase\n", | ||
1642 | proxytype_str); | ||
1639 | proxy_type = CURLPROXY_HTTP; | 1643 | proxy_type = CURLPROXY_HTTP; |
1640 | if (0 == strcmp (proxytype_str, "HTTP")) | 1644 | if (0 == strcmp (proxytype_str, "HTTP")) |
1641 | proxy_type = CURLPROXY_HTTP; | 1645 | proxy_type = CURLPROXY_HTTP; |