From 55684b3e94db0135aad573e6b948c4eecb226d8f Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Wed, 11 Nov 2020 09:55:37 -0500 Subject: [PATCH] adjust error handling for CODEC_WRITE_OP and CODEC_JOURNAL_OP only --- src/crypto.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/crypto.c b/src/crypto.c index 31eb0aa8..1565af29 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -714,7 +714,6 @@ static void* sqlite3Codec(void *iCtx, void *data, Pgno pgno, int mode) { if(rc != SQLITE_OK) { /* clear results of failed cipher operation and set error */ sqlcipher_memset((unsigned char*) buffer+offset, 0, page_sz-offset); sqlcipher_codec_ctx_set_error(ctx, rc); - return NULL; } memcpy(pData, buffer, page_sz); /* copy buffer data back to pData and return */ return pData;