dovecot-2.1: notify plugin: Don't crash if user-plugin didn't se...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jan 20 21:13:05 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/62c33ed5e357
changeset: 13974:62c33ed5e357
user: Timo Sirainen <tss at iki.fi>
date: Fri Jan 20 21:13:00 2012 +0200
description:
notify plugin: Don't crash if user-plugin didn't set mailbox_rename.
Patch by Ewald Dieterich.
diffstat:
src/plugins/notify/notify-plugin.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r eaf3152a33d6 -r 62c33ed5e357 src/plugins/notify/notify-plugin.c
--- a/src/plugins/notify/notify-plugin.c Fri Jan 20 21:11:09 2012 +0200
+++ b/src/plugins/notify/notify-plugin.c Fri Jan 20 21:13:00 2012 +0200
@@ -207,8 +207,10 @@
{
struct notify_context *ctx;
- for (ctx = ctx_list; ctx != NULL; ctx = ctx->next)
- ctx->v.mailbox_rename(src, dest, rename_children);
+ for (ctx = ctx_list; ctx != NULL; ctx = ctx->next) {
+ if (ctx->v.mailbox_rename != NULL)
+ ctx->v.mailbox_rename(src, dest, rename_children);
+ }
}
void notify_contexts_mailbox_set_subscribed(struct mailbox *box,
More information about the dovecot-cvs
mailing list