diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd.c')
-rw-r--r-- | src/backend/taler-merchant-httpd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c index e9572ecb..aa096cbf 100644 --- a/src/backend/taler-merchant-httpd.c +++ b/src/backend/taler-merchant-httpd.c @@ -1886,10 +1886,11 @@ url_handler (void *cls, auth_malformed = true; } - /* If we have no selected instance, no default instance AND no override - credentials, THEN we accept anything (no access control) */ - auth_ok = ( (NULL == hc->instance) && - (NULL == TMH_lookup_instance (NULL)) && + /* If we have zero configured instances (not even ones that have been + purged) AND no override credentials, THEN we accept anything (no access + control), as we then also have no data to protect. */ + auth_ok = ( (0 == + GNUNET_CONTAINER_multihashmap_size (TMH_by_id_map)) && (NULL == TMH_default_auth) ); /* Check against selected instance, if we have one */ if (NULL != hc->instance) |