@ -298,15 +298,14 @@ int mosquitto_acl_check_default(struct mosquitto_db *db, struct mosquitto *conte
local_acl[len] = '\0';
mosquitto_topic_matches_sub(local_acl, topic, &result);
_mosquitto_free(local_acl);
if(result){
if(access & acl_root->access){
/* And access is allowed. */
return MOSQ_ERR_SUCCESS;
}
acl_root = acl_root->next;