Fix error handling to avoid XSS attacks.
[citadel.git] / webcit / context_loop.c
index bf3ac7def2171edb0ee1a074978670aaa492ff9e..fd13b97f1151c72d14ef893391ded2f721e9c849 100644 (file)
@@ -603,6 +603,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;