diff options
author | rsc <devnull@localhost> | 2004-05-05 04:22:16 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-05 04:22:16 +0000 |
commit | 2e965b3324b32be00a2193bf304dcb936f02824b (patch) | |
tree | c183e68a04ee42308f493face299cb4cc4c559ec /src/libhttpd/parsereq.c | |
parent | 4f48d1d4f72b1986ba6df3ccd9db62cfa1ef3df9 (diff) | |
download | plan9port-2e965b3324b32be00a2193bf304dcb936f02824b.tar.gz plan9port-2e965b3324b32be00a2193bf304dcb936f02824b.tar.bz2 plan9port-2e965b3324b32be00a2193bf304dcb936f02824b.zip |
various bug fixes
Diffstat (limited to 'src/libhttpd/parsereq.c')
-rw-r--r-- | src/libhttpd/parsereq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libhttpd/parsereq.c b/src/libhttpd/parsereq.c index 7ef63413..94237988 100644 --- a/src/libhttpd/parsereq.c +++ b/src/libhttpd/parsereq.c @@ -41,8 +41,8 @@ hparsereq(HConnect *c, int timeout) * 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); |