Skip to content
Snippets Groups Projects
Commit 312d44ce authored by Stephan Bosch's avatar Stephan Bosch
Browse files

lib-sieve: storage: file, ldap: Fix logging of settings errors during storage init

parent 8a7aeb12
No related branches found
No related tags found
No related merge requests found
......@@ -536,7 +536,7 @@ static int sieve_file_storage_init(struct sieve_storage *storage)
&sieve_file_storage_setting_parser_info, 0,
&fstorage_set, &error) < 0) {
e_error(storage->event, "%s", error);
sieve_storage_set_critical(storage, "%s",error);
sieve_storage_set_internal_error(storage);
return -1;
}
......
......@@ -59,7 +59,8 @@ sieve_ldap_storage_init(struct sieve_storage *storage)
&ldap_set, &error);
event_unref(&event);
if (ret < 0) {
sieve_storage_set_critical(storage, "%s", error);
e_error(storage->event, "%s", error);
sieve_storage_set_internal_error(storage);
return -1;
}
if (*ldap_set->uris == '\0') {
......@@ -75,7 +76,8 @@ sieve_ldap_storage_init(struct sieve_storage *storage)
&set, &error) < 0 ||
settings_get(storage->event, &ssl_setting_parser_info, 0,
&ssl_set, &error) < 0) {
sieve_storage_set_critical(storage, "%s", error);
e_error(storage->event, "%s", error);
sieve_storage_set_internal_error(storage);
settings_free(set);
settings_free(ldap_set);
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.