various bug fixes

This commit is contained in:
rsc 2004-05-05 04:22:16 +00:00
parent 4f48d1d4f7
commit 2e965b3324
12 changed files with 82 additions and 41 deletions

View file

@ -198,7 +198,7 @@ hparseheaders(HConnect *c, int timeout)
memset(&h, 0, sizeof(h));
h.c = c;
alarm(timeout);
if(!hgethead(c, 1))
if(hgethead(c, 1) < 0)
return -1;
alarm(0);
h.hstart = c->hpos;