X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=libcitadel%2Flib%2Fstringbuf.c;h=1d24342771ee10998ef1e251379474cde22d8e89;hp=7eac317a9b54fc50df8746844fcd11424ff9ad44;hb=f9b48199d02bec18cf6964ce57dfe036f3ba226c;hpb=f83224ff00fdeda026d136863a72c945ef8536e4 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;