projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
one more null-check
[citadel.git]
/
libcitadel
/
lib
/
stringbuf.c
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index 7eac317a9b54fc50df8746844fcd11424ff9ad44..1d24342771ee10998ef1e251379474cde22d8e89 100644
(file)
--- 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;