[dovecot-cvs] dovecot/src/lib-index mail-cache-fields.c,1.11,1.12
cras at dovecot.org
cras at dovecot.org
Wed Dec 15 19:24:47 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv21841/lib-index
Modified Files:
mail-cache-fields.c
Log Message:
Check for duplicate fields in header.
Index: mail-cache-fields.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-fields.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- mail-cache-fields.c 4 Dec 2004 21:55:41 -0000 1.11
+++ mail-cache-fields.c 15 Dec 2004 17:24:44 -0000 1.12
@@ -222,6 +222,11 @@
field.decision = decisions[i];
mail_cache_register_fields(cache, &field, 1);
}
+ if (cache->field_file_map[field.idx] != (uint32_t)-1) {
+ mail_cache_set_corrupted(cache,
+ "Duplicated field in header: %s", names);
+ return -1;
+ }
cache->field_file_map[field.idx] = i;
cache->file_field_map[i] = field.idx;
More information about the dovecot-cvs
mailing list