[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.52, 1.53

cras at dovecot.org cras at dovecot.org
Sun Aug 22 13:13:07 EEST 2004


Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv3662/lib-index

Modified Files:
	mail-transaction-log.c 
Log Message:
Crashfix



Index: mail-transaction-log.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- mail-transaction-log.c	22 Aug 2004 10:05:07 -0000	1.52
+++ mail-transaction-log.c	22 Aug 2004 10:13:05 -0000	1.53
@@ -477,7 +477,8 @@
 		return NULL;
 	}
 
-	if (file->hdr.file_seq == log->index->map->log_file_seq &&
+	if (log->index->map != NULL &&
+	    file->hdr.file_seq == log->index->map->log_file_seq &&
 	    log->index->map->log_file_offset != 0) {
 		/* we can get a valid log offset from index file. initialize
 		   sync_offset from it so we don't have to read the whole log



More information about the dovecot-cvs mailing list