mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
print message when a SID cannot be decoded.
This commit is contained in:
@@ -346,6 +346,7 @@ static void value_check(struct worker_st *ws, struct http_req_st *req)
|
||||
nlen = sizeof(ws->sid);
|
||||
ret = base64_decode((char*)p, length, (char*)ws->sid, &nlen);
|
||||
if (ret == 0 || nlen != sizeof(ws->sid)) {
|
||||
oclog(ws, LOG_DEBUG, "could not decode sid: %.*s", length, p);
|
||||
req->sid_cookie_set = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user