various bug fixes
This commit is contained in:
parent
4f48d1d4f7
commit
2e965b3324
12 changed files with 82 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue