Skip to content
Snippets Groups Projects
Commit bc969540 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

config: fix case insensitivity for key names

refs #177
parent 30f7e0a2
Branches
Tags
No related merge requests found
......@@ -265,6 +265,7 @@ static int conf_key_exists(void *scanner, char *item)
{
/* Find existing node in keys. */
knot_dname_t *sample = knot_dname_from_str(item, strlen(item));
knot_dname_to_lower(sample);
conf_key_t* r = 0;
WALK_LIST (r, new_config->keys) {
if (knot_dname_cmp(r->k.name, sample) == 0) {
......@@ -285,6 +286,7 @@ static int conf_key_add(void *scanner, knot_tsig_key_t **key, char *item)
/* Find in keys */
knot_dname_t *sample = knot_dname_from_str(item, strlen(item));
knot_dname_to_lower(sample);
conf_key_t* r = 0;
WALK_LIST (r, new_config->keys) {
......
......@@ -237,7 +237,7 @@ knot_dname_t *knot_dname_replace_suffix(const knot_dname_t *name,
void knot_dname_free(knot_dname_t **name);
/*!
* \brief Compares two domain names (case insensitive).
* \brief Compares two domain names (case sensitive).
*
* \param d1 First domain name.
* \param d2 Second domain name.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment