X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=62ee82a03cc03038fb9de87193e1bbb10ea4f69f;hb=19efac53a8a87446e66e6e0213d7f9b46af60a48;hp=17c549174ebc4f153ade571a6589bcaf3c0a610d;hpb=2de0bf4c61fbe29da0952c04192739f4d347a31d;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 17c549174..62ee82a03 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -158,6 +158,9 @@ wcsession *FindSession(wcsession **wclist, ParsedHttpHdrs *Hdr, pthread_mutex_t (!strcasecmp(ChrPtr(Hdr->c_password), ChrPtr(sptr->wc_password))) ) { TheSession = sptr; } + if (TheSession == NULL) + lprintf(1, "found sessionkey [%ld], but credentials for [%s|%s] didn't match\n", + Hdr->HR.SessionKey,ChrPtr(Hdr->c_username), ChrPtr(sptr->wc_username)); break; case AUTH_COOKIE: /* If cookie-session, look for a session with matching session ID */ @@ -171,6 +174,9 @@ wcsession *FindSession(wcsession **wclist, ParsedHttpHdrs *Hdr, pthread_mutex_t } } pthread_mutex_unlock(ListMutex); + if (TheSession == NULL) + lprintf(1, "didn't find sessionkey [%ld] for user [%s]\n", + Hdr->HR.SessionKey,ChrPtr(Hdr->c_username)); return TheSession; }