X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=9c1dde0afe7f123332576b7f0aabbdf755661ccf;hb=95a0eeac3837826192949ff1da08ea9c010ce6d4;hp=62ee82a03cc03038fb9de87193e1bbb10ea4f69f;hpb=e60b2fec0c675e95bd829f86c0552288fa7524d7;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 62ee82a03..9c1dde0af 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -319,7 +319,7 @@ int ReadHttpSubject(ParsedHttpHdrs *Hdr, StrBuf *Line, StrBuf *Buf) break; } while (1); /* remove the handlername from the URL */ - if (Pos != NULL) { + if ((Pos != NULL) && (Pos != StrBufNOTNULL)){ StrBufCutLeft(Hdr->HR.ReqLine, Pos - ChrPtr(Hdr->HR.ReqLine)); }