Skip to content

Commit

Permalink
Placate clang scan
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Sep 25, 2023
1 parent 04fdc05 commit a2a739f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/server/virtual_servers.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static int namespace_on_read(TALLOC_CTX *ctx, UNUSED void *out, UNUSED void *par
return -1;
}
cf_data_add(server_cs, mi, "process_module", false);
cf_data_add(server_cs, *(process->dict), "dict", false);
cf_data_add(server_cs, *(process->dict), "dict", false);

return 0;
}
Expand Down Expand Up @@ -1149,12 +1149,12 @@ static int define_server_attrs(CONF_SECTION *cs, fr_dict_t *dict, fr_dict_attr_t
}

if (fr_dict_attr_by_name(NULL, parent, value) != NULL) {
cf_log_err(cp, "Local variable '%s' duplicates a previous local attribute.", value);
cf_log_err(ci, "Local variable '%s' duplicates a previous local attribute.", value);
return -1;
}

if (fr_dict_attr_add(dict, parent, value, -1, type, &flags) < 0) {
cf_log_err(cp, "Failed adding local variable '%s'", value);
cf_log_err(ci, "Failed adding local variable '%s'", value);
return -1;
}

Expand Down

0 comments on commit a2a739f

Please sign in to comment.