Skip to content

Commit

Permalink
[#459] Unknown tls value in server configuration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashu3103 committed Aug 27, 2024
1 parent 345fde7 commit 8b4b7ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libpgagroal/configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -4408,7 +4408,7 @@ pgagroal_apply_main_configuration(struct main_configuration* config,
unknown = true;
}
}
else if (key_in_section("tls", section, key, true, &unknown))
else if (key_in_section("tls", section, key, true, NULL))
{
if (as_bool(value, &config->common.tls))
{
Expand All @@ -4422,7 +4422,7 @@ pgagroal_apply_main_configuration(struct main_configuration* config,
unknown = true;
}
}
else if (key_in_section("tls_ca_file", section, key, true, &unknown))
else if (key_in_section("tls_ca_file", section, key, true, NULL))
{
max = strlen(value);
if (max > MISC_LENGTH - 1)
Expand All @@ -4440,7 +4440,7 @@ pgagroal_apply_main_configuration(struct main_configuration* config,
}
memcpy(srv->tls_ca_file, value, max);
}
else if (key_in_section("tls_cert_file", section, key, true, &unknown))
else if (key_in_section("tls_cert_file", section, key, true, NULL))
{
max = strlen(value);
if (max > MISC_LENGTH - 1)
Expand All @@ -4458,7 +4458,7 @@ pgagroal_apply_main_configuration(struct main_configuration* config,
}
memcpy(srv->tls_cert_file, value, max);
}
else if (key_in_section("tls_key_file", section, key, true, &unknown))
else if (key_in_section("tls_key_file", section, key, true, NULL))
{
max = strlen(value);
if (max > MISC_LENGTH - 1)
Expand Down

0 comments on commit 8b4b7ed

Please sign in to comment.