Skip to content
Snippets Groups Projects
Commit bc303d17 authored by Stephan Bosch's avatar Stephan Bosch Committed by Timo Sirainen
Browse files

lib-sieve: sieve-storage - Always create new child event in sieve_storage_alloc()

parent 7bdb5451
No related branches found
No related tags found
No related merge requests found
...@@ -338,29 +338,24 @@ sieve_storage_alloc_from_class(struct sieve_instance *svinst, ...@@ -338,29 +338,24 @@ sieve_storage_alloc_from_class(struct sieve_instance *svinst,
return 0; return 0;
} }
int sieve_storage_alloc(struct sieve_instance *svinst, struct event *event, int sieve_storage_alloc(struct sieve_instance *svinst,
struct event *event_parent,
const struct sieve_storage *storage_class, const struct sieve_storage *storage_class,
const char *data, enum sieve_storage_flags flags, const char *data, enum sieve_storage_flags flags,
bool main, struct sieve_storage **storage_r, bool main, struct sieve_storage **storage_r,
enum sieve_error *error_code_r, const char **error_r) enum sieve_error *error_code_r, const char **error_r)
{ {
struct event *storage_event, *event;
struct sieve_storage *storage; struct sieve_storage *storage;
int ret; int ret;
*storage_r = NULL; *storage_r = NULL;
sieve_error_args_init(&error_code_r, &error_r); sieve_error_args_init(&error_code_r, &error_r);
if (event != NULL) storage_event = sieve_storage_create_event(svinst, event_parent);
event_ref(event); event = sieve_storage_create_driver_event(storage_event,
else { storage_class->driver_name);
struct event *storage_event; event_unref(&storage_event);
storage_event = sieve_storage_create_event(
svinst, svinst->event);
event = sieve_storage_create_driver_event(
storage_event, storage_class->driver_name);
event_unref(&storage_event);
}
ret = sieve_storage_alloc_from_class(svinst, event, storage_class, ret = sieve_storage_alloc_from_class(svinst, event, storage_class,
data, flags, data, flags,
......
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.