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

ManageSieve: fixed deinitialization problem in dump-capability plugin.

parent 9f99c4ca
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@
typedef enum { CAP_SIEVE, CAP_NOTIFY } capability_type_t;
bool capability_dumped = FALSE;
static char *capability_sieve = NULL;
static char *capability_notify = NULL;
......@@ -197,10 +198,9 @@ static void managesieve_login_config_parser_begin(struct config_parser_context *
if (*ctx->module != '\0' && strcmp(ctx->module, "managesieve-login") != 0)
return;
if ( capability_sieve == NULL ) {
if ( !capability_dump() ) {
capability_sieve = "";
}
if ( !capability_dumped ) {
(void)capability_dump();
capability_dumped = TRUE;
}
if ( capability_sieve != NULL )
......
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.