From: Wilfried Goesgens Date: Sun, 21 Oct 2012 17:52:09 +0000 (+0200) Subject: STRBUF: fix sanity check when resetting the buffer pointer. X-Git-Tag: v8.20~217 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=40658926a74b10dd7f95cf0ffaf7fd6feabf431d STRBUF: fix sanity check when resetting the buffer pointer. --- 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;