diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |