[dovecot-cvs] dovecot/src/imap cmd-search.c,1.32,1.33

tss at dovecot.org tss at dovecot.org
Mon Mar 26 01:46:26 EEST 2007


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv10910

Modified Files:
	cmd-search.c 
Log Message:
crashfix



Index: cmd-search.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/cmd-search.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- cmd-search.c	25 Mar 2007 18:24:22 -0000	1.32
+++ cmd-search.c	25 Mar 2007 22:46:24 -0000	1.33
@@ -170,6 +170,8 @@
 	if (cmd_search_more(cmd))
 		return TRUE;
 
-	ctx->to = timeout_add(0, cmd_search_more_callback, cmd);
+	/* we could have moved onto syncing by now */
+	if (cmd->func == cmd_search_more)
+		ctx->to = timeout_add(0, cmd_search_more_callback, cmd);
 	return FALSE;
 }



More information about the dovecot-cvs mailing list