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



commit 6cabe110dd5d3d26e68e56f8ae0b4534ad501023
Author: Julien Ducourthial <gmenhir free fr>
Date:   Thu Sep 30 13:38:19 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 b9cf927..cf417fc 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -1101,6 +1101,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]