Cleanup setproctitle, changed return-type of readline()

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@111 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Mark Janssen 2006-02-11 00:21:16 +00:00
parent 84e4e827bf
commit 860e177e53
6 changed files with 16 additions and 10 deletions

9
http.c
View file

@ -45,8 +45,13 @@ void analyze_HTTP()
*/
while (strncmp( p, "HTTP/", 5) != 0 )
{
readline();
p = strtok( buf, " ");
if ( readline() )
p = strtok( buf, " ");
else
{
message( "analyze_HTTP: borken\n" );
break;
}
}
if (strcmp( p, "HTTP/1.0" ) != 0 && strcmp( p, "HTTP/1.1" ) != 0)