if (hdr->DontNeedAuth)
return;
*/
- hdr->RawCookie = Line;
-
- pch = strstr(ChrPtr(hdr->RawCookie), "webcit=");
-
- if (pch != NULL)
- StrBufCutLeft(hdr->RawCookie, (pch - ChrPtr(hdr->RawCookie)) + 7);
+ pch = strstr(ChrPtr(Line), "webcit=");
+ if (pch == NULL) {
+ return;
+ }
+ hdr->RawCookie = Line;
+ StrBufCutLeft(hdr->RawCookie, (pch - ChrPtr(hdr->RawCookie)) + 7);
StrBufDecodeHex(hdr->RawCookie);
if (hdr->c_username == NULL)