| commit | 2e965b3324b32be00a2193bf304dcb936f02824b | [log] [tgz] |
|---|---|---|
| author | rsc <devnull@localhost> | Wed May 05 04:22:16 2004 +0000 |
| committer | rsc <devnull@localhost> | Wed May 05 04:22:16 2004 +0000 |
| tree | c183e68a04ee42308f493face299cb4cc4c559ec | |
| parent | 4f48d1d4f72b1986ba6df3ccd9db62cfa1ef3df9 [diff] [blame] |
various bug fixes
diff --git a/src/libhttpd/parsereq.c b/src/libhttpd/parsereq.c index 7ef6341..9423798 100644 --- a/src/libhttpd/parsereq.c +++ b/src/libhttpd/parsereq.c
@@ -41,8 +41,8 @@ * only works for http/1.1 or later. */ alarm(timeout); - if(!hgethead(c, 0)) - return 0; + if(hgethead(c, 0) < 0) + return -1; alarm(0); c->reqtime = time(nil); c->req.meth = getword(c);