From f9b48199d02bec18cf6964ce57dfe036f3ba226c Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 3 Jun 2012 14:41:38 +0200 Subject: [PATCH] one more null-check --- libcitadel/lib/stringbuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index 7eac317a9..1d2434277 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -4661,7 +4661,8 @@ int StrBufSipLine(StrBuf *LineBuf, const StrBuf *Buf, const char **Ptr) if ((Buf == NULL) || (*Ptr == StrBufNOTNULL) || - (LineBuf == NULL)) + (LineBuf == NULL)|| + (LineBuf->buf == NULL)) { *Ptr = StrBufNOTNULL; return 0; -- 2.30.2