dovecot-2.0: notify plugin: Don't crash if user-plugin didn't se...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jan 20 21:14:10 EET 2012
details: http://hg.dovecot.org/dovecot-2.0/rev/d9499e268883
changeset: 13021:d9499e268883
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 687949948a83 -r d9499e268883 src/plugins/notify/notify-plugin.c
--- a/src/plugins/notify/notify-plugin.c Wed Jan 18 14:21:53 2012 +0200
+++ b/src/plugins/notify/notify-plugin.c Fri Jan 20 21:13:00 2012 +0200
@@ -197,8 +197,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);
+ }
}
struct notify_context *
More information about the dovecot-cvs
mailing list