aboutsummaryrefslogtreecommitdiff
path: root/src/extensions
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-11-04 14:43:12 +0100
committerFlorian Dold <florian@dold.me>2022-11-04 14:43:12 +0100
commitbcaccec009def3c72adc8538fd379121e672924c (patch)
tree510120f297f5d414a285101494467ea7dbc96469 /src/extensions
parent81ee8f01d89bab616fd86741fc5886d32f58c41c (diff)
lower-case extension names before loading the plugin
Diffstat (limited to 'src/extensions')
-rw-r--r--src/extensions/extensions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/extensions/extensions.c b/src/extensions/extensions.c
index 2ed973d92..c7d807177 100644
--- a/src/extensions/extensions.c
+++ b/src/extensions/extensions.c
@@ -202,6 +202,11 @@ configure_extension (
GNUNET_asprintf (&lib_name,
"libtaler_extension_%s",
name);
+ /* Lower-case extension name, config is case-insensitive */
+ for (unsigned int i = 0; i < strlen (lib_name); i++)
+ {
+ lib_name[i] = tolower (lib_name[i]);
+ }
extension = GNUNET_PLUGIN_load (
lib_name,
(void *) col->cfg);