summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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] */