diff --git a/src/config.c b/src/config.c index 0278db0c..d27cd657 100644 --- a/src/config.c +++ b/src/config.c @@ -205,6 +205,9 @@ static void figure_auth_funcs(void *pool, const char *vhostname, if (auth == NULL) return; + if (vhostname[0] == 0) + vhostname = "vhost:default"; + if (primary != 0) { /* Set the primary authentication methods */ for (j=0;jauth[0].name); + fprintf(stderr, NOTESTR"%s: setting '%s' as primary authentication method\n", vhostname, config->auth[0].name); } else { unsigned x = config->auth_methods; /* Append authentication methods (alternative options) */