mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
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:
parent
84e4e827bf
commit
860e177e53
6 changed files with 16 additions and 10 deletions
9
http.c
9
http.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue