(handle_tcp): make sure we have data before starting to look for HTTP
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6422 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -679,6 +679,7 @@ handle_tcp(struct descr *d, int index, int min_free)
|
||||
if(d[index].len > 4 && d[index].buf[0] == 0) {
|
||||
ret = handle_vanilla_tcp (&d[index]);
|
||||
} else if(enable_http &&
|
||||
d[index].len >= 4 &&
|
||||
strncmp((char *)d[index].buf, "GET ", 4) == 0 &&
|
||||
strncmp((char *)d[index].buf + d[index].len - 4,
|
||||
"\r\n\r\n", 4) == 0) {
|
||||
|
Reference in New Issue
Block a user