Revert change of default ACL priority

This commit is contained in:
Roger A. Light
2024-02-15 11:40:12 +00:00
parent f0c5b69e64
commit c6436ad6b2
+2 -2
View File
@@ -235,7 +235,7 @@ static int dynsec_roles__acl_load(cJSON *j_acls, const char *key, struct dynsec_
}
strncpy(acl->topic, topic, topic_len+1);
json_get_int(j_acl, "priority", &acl->priority, true, -1);
json_get_int(j_acl, "priority", &acl->priority, true, 0);
if(acl->priority > PRIORITY_MAX) acl->priority = PRIORITY_MAX;
json_get_bool(j_acl, "allow", &acl->allow, true, false);
@@ -675,7 +675,7 @@ int dynsec_roles__process_add_acl(struct dynsec__data *data, struct mosquitto_co
}
strncpy(acl->topic, topic, topic_len+1);
json_get_int(cmd->j_command, "priority", &acl->priority, true, -1);
json_get_int(cmd->j_command, "priority", &acl->priority, true, 0);
if(acl->priority > PRIORITY_MAX) acl->priority = PRIORITY_MAX;
json_get_bool(cmd->j_command, "allow", &acl->allow, true, false);