From 40658926a74b10dd7f95cf0ffaf7fd6feabf431d Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 21 Oct 2012 19:52:09 +0200 Subject: [PATCH] STRBUF: fix sanity check when resetting the buffer pointer. --- libcitadel/lib/stringbuf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index 968fe9793..9354c91f1 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -4648,9 +4648,12 @@ int StrBufReadBLOBBuffered(StrBuf *Blob, int nSuccessLess = 0; int MaxTries; - if ((Blob == NULL) || (*fd == -1) || (IOBuf == NULL) || (Pos == NULL)) + if ((Blob == NULL) || + (*fd == -1) || + (IOBuf == NULL) || + (Pos == NULL)) { - if (*Pos != NULL) + if (Pos != NULL) *Pos = NULL; *Error = ErrRBB_BLOBFPreConditionFailed; return -1; -- 2.30.2