@ -636,7 +636,7 @@ int mosquitto_unpwd_check_default(struct mosquitto_db *db, const char *username,
#endif
if(!db) return MOSQ_ERR_INVAL;
if(!db->unpwd && !db->auth_plugins) return MOSQ_ERR_PLUGIN_DEFER;
if(!db->unpwd) return MOSQ_ERR_PLUGIN_DEFER;
if(!username) return MOSQ_ERR_INVAL; /* Check must be made only after checking db->unpwd. */
HASH_ITER(hh, db->unpwd, u, tmp){