[evolution-data-server] Bug #616172 - Return NULL from imapx_find_commad_tag when not found



commit df294ca9fc4bcb92322d31b3c8264488be3db34b
Author: Julien Ducourthial <gmenhir free fr>
Date:   Thu Sep 30 13:36:00 2010 +0200

    Bug #616172 - Return NULL from imapx_find_commad_tag when not found

 camel/providers/imapx/camel-imapx-server.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 5315c16..63f5e1a 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -1113,6 +1113,10 @@ imapx_find_command_tag (CamelIMAPXServer *imap, guint tag)
 	for (ic = (CamelIMAPXCommand *)imap->active.head;ic->next;ic=ic->next)
 		if (ic->tag == tag)
 			goto found;
+
+	/* Not found: force it to NULL otherwise we return the tail address */
+	ic = NULL;
+
 found:
 	QUEUE_UNLOCK (imap);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]