Index: src/wal.c ================================================================== --- src/wal.c +++ src/wal.c @@ -706,10 +706,12 @@ walChecksumBytes(nativeCksum, aFrame, 8, aCksum, aCksum); walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum); sqlite3Put4byte(&aFrame[16], aCksum[0]); sqlite3Put4byte(&aFrame[20], aCksum[1]); + }else{ + memset(&aFrame[8], 0, 16); } } /* ** Check to see if the frame with header in aFrame[] and content