From 2528cd97b30089b196615adb7ec94777245bad6f Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 1 Sep 2011 16:34:44 +0000 Subject: [PATCH] FB->ReadWritePointer has to point to FB->Buf->Buf if the buffer is nonempty; logic in other functions depends on this. --- libcitadel/lib/stringbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index 044cecf0a..082cd7046 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -3715,7 +3715,7 @@ eReadState StrBufChunkSipLine(StrBuf *LineBuf, IOBuffer *FB) */ StrBufCutLeft(FB->Buf, FB->ReadWritePointer - FB->Buf->buf); - FB->ReadWritePointer = NULL; + FB->ReadWritePointer = FB->Buf->buf; } return eMustReadMore; } -- 2.30.2