dovecot-2.0: lib-storage: Fixed hooks with plugins that didn't o...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 20 19:21:33 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/5b3202a069fa
changeset: 11870:5b3202a069fa
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 20 17:21:29 2010 +0100
description:
lib-storage: Fixed hooks with plugins that didn't override any vfuncs
diffstat:
src/lib-storage/mail-storage-hooks.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r fd4cf27c179b -r 5b3202a069fa src/lib-storage/mail-storage-hooks.c
--- a/src/lib-storage/mail-storage-hooks.c Tue Jul 20 15:22:02 2010 +0100
+++ b/src/lib-storage/mail-storage-hooks.c Tue Jul 20 17:21:29 2010 +0100
@@ -203,6 +203,11 @@
void (**vlast)() = _vlast;
struct hook_stack *stack;
+ if (ctx->tail->vfuncs == vlast) {
+ /* no vfuncs overridden */
+ return;
+ }
+
/* ctx->vfuncs_stack->vfuncs points to the root vfuncs,
ctx->vfuncs_stack->next->vfuncs points to the first super function
that is being called, and so on.
More information about the dovecot-cvs
mailing list