one more null-check
[citadel.git] / libcitadel / lib / stringbuf.c
index 7eac317a9b54fc50df8746844fcd11424ff9ad44..1d24342771ee10998ef1e251379474cde22d8e89 100644 (file)
@@ -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;