]> granicus.if.org Git - curl/commitdiff
pop3.c: Fixed length of SASL check
authorSteve Holme <steve_holme@hotmail.com>
Sat, 9 Jun 2012 10:08:08 +0000 (11:08 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 9 Jun 2012 10:08:08 +0000 (11:08 +0100)
lib/pop3.c

index 02d6e7aeb3d73dbbcbd37d56c8c30fc052f0e426..a166208dbcef635abba3141fa9fd9b194043994f 100644 (file)
@@ -240,7 +240,7 @@ static int pop3_endofresp(struct pingpong *pp, int *resp)
     }
 
     /* We are only interested in the SASL line */
-    if(len < 4 || memcmp(line, "SASL", 3)) {
+    if(len < 4 || memcmp(line, "SASL", 4)) {
       return FALSE;
     }