[dovecot-cvs] dovecot/src/lib-index mail-index-sync-ext.c,1.2,1.3
cras at dovecot.org
cras at dovecot.org
Mon Dec 20 09:45:44 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv25406
Modified Files:
mail-index-sync-ext.c
Log Message:
If there are no extensions, don't crash while expunging.
Index: mail-index-sync-ext.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-ext.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- mail-index-sync-ext.c 19 Dec 2004 01:53:30 -0000 1.2
+++ mail-index-sync-ext.c 20 Dec 2004 07:45:41 -0000 1.3
@@ -17,6 +17,9 @@
size_t handlers_count, id_map_size, size;
uint32_t idx_ext_id, map_ext_id;
+ if (ctx->view->map->extensions == NULL)
+ return;
+
handlers = buffer_get_data(ctx->view->index->expunge_handlers,
&handlers_count);
handlers_count /= sizeof(*handlers);
More information about the dovecot-cvs
mailing list