Passive Ftp uncase response - bugid: 8171

Costantino Leandro le_costantino at pixartargentina.com.ar
Wed Apr 25 06:30:34 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=8171

As suggested, i post it on the list just in case.

excuse if i shouldnt.


-------------- next part --------------
--- dlls/wininet/ftp.old.c	2007-04-25 06:12:03.000000000 -0300
+++ dlls/wininet/ftp.c	2007-04-25 06:39:44.000000000 -0300
@@ -2543,12 +2543,11 @@ static BOOL FTP_DoPassive(LPWININETFTPSE
 	    char *pAddr, *pPort;
 	    INT nsocket = -1;
 	    struct sockaddr_in dataSocketAddress;
-
 	    p = lpszResponseBuffer+4; /* skip status code */
 
 	    /* do a very strict check; we can improve that later. */
-
-	    if (strncmp(p, "Entering Passive Mode", 21))
+	    
+	    if (strncasecmp(p, "Entering Passive Mode", 21))
 	    {
 		ERR("unknown response '%.*s', aborting\n", 21, p);
 		goto lend;


More information about the wine-patches mailing list