diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-22 10:38:09 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-22 10:38:09 +0000 |
commit | 27d057de5d361e8672a3b3f69a4a239ed1977de0 (patch) | |
tree | 6ae217e50a1d4769372e1c977e7f863af5fdca81 /pop3.c | |
parent | f357b2cdc97d36b2b0bc2c19685566d91af5948f (diff) | |
download | fetchmail-27d057de5d361e8672a3b3f69a4a239ed1977de0.tar.gz fetchmail-27d057de5d361e8672a3b3f69a4a239ed1977de0.tar.bz2 fetchmail-27d057de5d361e8672a3b3f69a4a239ed1977de0.zip |
If UIDL parser fails, barf with PS_ERROR rather than ignoring the problem.
svn path=/trunk/; revision=4163
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -916,7 +916,7 @@ static int pop3_getrange(int sock, unsigned long unum; *newp = 0; - while ((ok = gen_recv(sock, buf, sizeof(buf))) == 0) + while ((ok = gen_recv(sock, buf, sizeof(buf))) == PS_SUCCESS) { if (DOTLINE(buf)) break; @@ -962,7 +962,8 @@ static int pop3_getrange(int sock, old = save_str(&ctl->oldsaved, id, UID_UNSEEN); old->val.status.num = unum; } - } + } else + return PS_ERROR; } } } |