From 95a0eeac3837826192949ff1da08ea9c010ce6d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 7 Sep 2009 21:06:51 +0000 Subject: [PATCH] * here we need to look for StrBufNOTNULL too. --- webcit/context_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.30.2