pop3.c: Fixed drop of final CRLF in EOB checking
authorSteve Holme <steve_holme@hotmail.com>
Sat, 18 Feb 2012 22:57:13 +0000 (22:57 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Feb 2012 22:48:14 +0000 (23:48 +0100)
commit035ef06bda7fbe9ae1934f9dee008b61ad623ac1
treedea3642a8712bd92e6b5af281dcc645c4e128347
parent3d98aed5b351b6437a6ffffed0589f8ab02a59e0
pop3.c: Fixed drop of final CRLF in EOB checking

Curl_pop3_write() would drop the final CRLF of a message as it was
considered part of the EOB as opposed to part of the message. Whilst
the EOB sequence needs to be searched for by the function only the
final 3 characters should be removed as per RFC-1939 section 3.

Reported by: Rich Gray
Bug: http://curl.haxx.se/mail/lib-2012-02/0051.html
lib/pop3.c