Skip to content

Commit 55684b3

Browse files
committed
adjust error handling for CODEC_WRITE_OP and CODEC_JOURNAL_OP only
1 parent b395353 commit 55684b3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/crypto.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ static void* sqlite3Codec(void *iCtx, void *data, Pgno pgno, int mode) {
714714
if(rc != SQLITE_OK) { /* clear results of failed cipher operation and set error */
715715
sqlcipher_memset((unsigned char*) buffer+offset, 0, page_sz-offset);
716716
sqlcipher_codec_ctx_set_error(ctx, rc);
717-
return NULL;
718717
}
719718
memcpy(pData, buffer, page_sz); /* copy buffer data back to pData and return */
720719
return pData;

0 commit comments

Comments
 (0)