imap: Added check for new internal imap response code

This commit is contained in:
Steve Holme 2013-02-24 19:23:33 +00:00
Родитель 37f0caeabd
Коммит d23d2f2bd8
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -1283,6 +1283,10 @@ static CURLcode imap_statemach_act(struct connectdata *conn)
if(result)
return result;
/* Was there an error parsing the response line? */
if(imapcode == -1)
return CURLE_FTP_WEIRD_SERVER_REPLY;
if(imapcode) {
/* We have now received a full IMAP server response */
switch(imapc->state) {