X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=f02a619913123c375a81c599d29b6e5dd17896cf;hb=d574d7121215c86414c12503d22bf9df286816db;hp=bf3ac7def2171edb0ee1a074978670aaa492ff9e;hpb=0bb85075081ecab7a189484af2438116982a3030;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index bf3ac7def..f02a61991 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -397,7 +397,11 @@ int ReadHTTPRequest (ParsedHttpHdrs *Hdr) nLine ++; Line = NewStrBufPlain(NULL, SIZ / 4); - if (ClientGetLine(Hdr, Line) < 0) return 1; + if (ClientGetLine(Hdr, Line) < 0) { + FreeStrBuf(&Line); + isbogus = 1; + break; + } if (StrLength(Line) == 0) { FreeStrBuf(&Line); @@ -603,6 +607,7 @@ void context_loop(ParsedHttpHdrs *Hdr) pthread_setspecific(MyConKey, (void *)TheSession); TheSession->inuse = 1; /* mark the session as bound */ + TheSession->isFailure = 0; /* reset evntually existing error flags */ TheSession->lastreq = now; /* log */ TheSession->Hdr = Hdr;