From: Wilfried Goesgens Date: Thu, 1 Sep 2011 16:34:44 +0000 (+0000) Subject: FB->ReadWritePointer has to point to FB->Buf->Buf if the buffer is nonempty; logic... X-Git-Tag: v8.11~991 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=2528cd97b30089b196615adb7ec94777245bad6f FB->ReadWritePointer has to point to FB->Buf->Buf if the buffer is nonempty; logic in other functions depends on this. --- 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; }