[evolution-data-server] Bug 749773 - [IMAPx] Ignore preceding '+' in capability name
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 749773 - [IMAPx] Ignore preceding '+' in capability name
- Date: Thu, 27 Aug 2015 17:30:15 +0000 (UTC)
commit 476b2f1726fd7b8076b9014d3a31f827e3b6a7cf
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 27 19:29:39 2015 +0200
Bug 749773 - [IMAPx] Ignore preceding '+' in capability name
camel/providers/imapx/camel-imapx-utils.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c
index da51e65..574463e 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -521,6 +521,9 @@ imapx_parse_capability (CamelIMAPXInputStream *stream,
stream, tok, token, len);
break;
case 43:
+ /* the CAPABILITY shouldn't start with a '+', ignore it then */
+ if (!token)
+ break;
token = (guchar *) g_strconcat ((gchar *) token, "+", NULL);
free_token = TRUE;
/* coverity[fallthrough] */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]