diff options
author | Florian Dold <florian@dold.me> | 2022-11-04 14:43:12 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-04 14:43:12 +0100 |
commit | bcaccec009def3c72adc8538fd379121e672924c (patch) | |
tree | 510120f297f5d414a285101494467ea7dbc96469 /src/extensions | |
parent | 81ee8f01d89bab616fd86741fc5886d32f58c41c (diff) |
lower-case extension names before loading the plugin
Diffstat (limited to 'src/extensions')
-rw-r--r-- | src/extensions/extensions.c | 5 |
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); |