mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-18 11:45:08 +08:00
Revert change of default ACL priority
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user