summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2015-08-27 19:29:39 +0200
committerMilan Crha <mcrha@redhat.com>2015-08-27 19:29:39 +0200
commit476b2f1726fd7b8076b9014d3a31f827e3b6a7cf (patch)
tree8730af92f8aa016e4d2400fd1067488d160e4706
parenta382783cce2a8aca60c7752687f38b0a52f09e3d (diff)
downloadevolution-data-server-476b2f1726fd7b8076b9014d3a31f827e3b6a7cf.tar.gz
Bug 749773 - [IMAPx] Ignore preceding '+' in capability name
-rw-r--r--camel/providers/imapx/camel-imapx-utils.c3
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 da51e65ac..574463ed2 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] */