From: Wilfried Goesgens Date: Sun, 3 Jun 2012 12:41:38 +0000 (+0200) Subject: one more null-check X-Git-Tag: v8.12~39 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f9b48199d02bec18cf6964ce57dfe036f3ba226c one more null-check --- 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;