projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FB->ReadWritePointer has to point to FB->Buf->Buf if the buffer is nonempty; logic...
[citadel.git]
/
libcitadel
/
lib
/
stringbuf.c
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index 044cecf0a65037c3f7d2fb9784c8c41913b4ef2e..082cd7046854db4fe69935c1a692ddff700de2b6 100644
(file)
--- 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;
}