projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a02c3
)
pop3: Fixed APOP timestamp detection from commit 1cfb436a2f1795
author
Steve Holme
<steve_holme@hotmail.com>
Fri, 20 Dec 2013 20:17:59 +0000
(20:17 +0000)
committer
Steve Holme
<steve_holme@hotmail.com>
Fri, 20 Dec 2013 20:17:59 +0000
(20:17 +0000)
lib/pop3.c
patch
|
blob
|
history
diff --git
a/lib/pop3.c
b/lib/pop3.c
index
62c7b04
..
782458a
100644
(file)
--- a/
lib/pop3.c
+++ b/
lib/pop3.c
@@
-659,11
+659,11
@@
static CURLcode pop3_state_servergreet_resp(struct connectdata *conn,
}
else {
/* Look for the APOP timestamp */
- if(len >=
3 && line[len - 3
] == '>') {
- for(i =
0; i < len - 3
; ++i) {
+ if(len >=
4 && line[len - 2
] == '>') {
+ for(i =
3; i < len - 2
; ++i) {
if(line[i] == '<') {
/* Calculate the length of the timestamp */
- size_t timestamplen = len -
2
- i;
+ size_t timestamplen = len -
1
- i;
if(!timestamplen)
break;