From 7cc21497c1257b20c5e1818c0cd56bff14b7b7b1 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 12 Oct 2005 06:00:28 +0000 Subject: fixed parsing of literal data in IMAP4 response. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@636 ee746299-78ed-0310-b773-934348b2243d --- libsylph/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsylph/imap.c') diff --git a/libsylph/imap.c b/libsylph/imap.c index 92926d3e..0f75f73c 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -3744,7 +3744,7 @@ static gint imap_cmd_ok(IMAPSession *session, GPtrArray *argbuf) /* literal */ p = strchr_cpy(p + 1, '}', obuf, sizeof(obuf)); len = atoi(obuf); - if (len < 0 || p != '\0') { + if (len < 0 || p == NULL || *p != '\0') { g_free(buf); ok = IMAP_ERROR; break; -- cgit v1.2.3