(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:
Assar Westerlund
1999-07-05 19:11:50 +00:00
parent faca5a7f19
commit 33f58480d5

View File

@@ -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) {