Fix FTP over HTTP authentication request parsing

This commit is contained in:
z3APA3A 2015-09-01 16:24:40 +03:00
parent 3198f1614f
commit 4ca8988831
2 changed files with 2 additions and 2 deletions

View File

@ -461,7 +461,7 @@ for(;;){
} }
if(se)*se = '\r'; if(se)*se = '\r';
} }
if(ftp && i > 19 && (!strncasecmp((char *)(buf+inbuf), "authorization", 19))){ if(ftp && i > 13 && (!strncasecmp((char *)(buf+inbuf), "authorization", 13))){
sb = (unsigned char *)strchr((char *)(buf+inbuf), ':'); sb = (unsigned char *)strchr((char *)(buf+inbuf), ':');
if(!sb)continue; if(!sb)continue;
++sb; ++sb;

View File

@ -1,2 +1,2 @@
#define VERSION "3proxy-0.8b-devel" #define VERSION "3proxy-0.8b-devel"
#define BUILDDATE "150901150708" #define BUILDDATE "150901162209"