commit 617affcb19bb2680a06298e9a1ebe06afea70fb7
parent 92105a15752e2f4375283693244e0eab8e8eba8f
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 9 Mar 2026 12:37:45 +0100
handle empty scope string
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_auth.c b/src/backend/taler-merchant-httpd_auth.c
@@ -573,6 +573,8 @@ TMH_scope_is_subset (enum TMH_AuthScope as,
enum TMH_AuthScope
TMH_get_scope_by_name (const char *name)
{
+ if (NULL == name)
+ return TMH_AS_NONE;
for (unsigned int i = 0; TMH_AS_NONE != scope_permissions[i].as; i++)
{
if (0 == strcasecmp (scope_permissions[i].name,