one more null-check
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 3 Jun 2012 12:41:38 +0000 (14:41 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 3 Jun 2012 12:41:38 +0000 (14:41 +0200)
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;