diff options
author | drh <drh@noemail.net> | 2009-06-19 02:25:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-06-19 02:25:48 +0000 |
commit | 0472b5ad3f121fd6e83bea7fb8a61976dd9622eb (patch) | |
tree | 00e26dbb8adc1641ce324071912be40cce329ce6 /src | |
parent | 37b89a018667c07b564ace7b20e07dd22bfb21e2 (diff) | |
download | sqlite-0472b5ad3f121fd6e83bea7fb8a61976dd9622eb.tar.gz sqlite-0472b5ad3f121fd6e83bea7fb8a61976dd9622eb.zip |
Fix a possible segfault when backing up an encrypted database. (CVS 6785)
FossilOrigin-Name: 7d8f178c8145b90da31f6557f7cd99d154eb676e
Diffstat (limited to 'src')
-rw-r--r-- | src/pager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pager.c b/src/pager.c index a10c61c73..309e141b0 100644 --- a/src/pager.c +++ b/src/pager.c @@ -18,7 +18,7 @@ ** file simultaneously, or one process from reading the database while ** another is writing. ** -** @(#) $Id: pager.c,v 1.596 2009/06/19 00:33:32 drh Exp $ +** @(#) $Id: pager.c,v 1.597 2009/06/19 02:25:49 drh Exp $ */ #ifndef SQLITE_OMIT_DISKIO #include "sqliteInt.h" @@ -1533,9 +1533,9 @@ static int pager_playback_one_page( pPager->dbFileSize = pgno; } if( pPager->pBackup ){ - CODEC1(pPager, aData, pPg->pgno, 3, rc=SQLITE_NOMEM); + CODEC1(pPager, aData, pgno, 3, rc=SQLITE_NOMEM); sqlite3BackupUpdate(pPager->pBackup, pgno, aData); - CODEC1(pPager, aData, pPg->pgno, 0, rc=SQLITE_NOMEM); + CODEC1(pPager, aData, pgno, 0, rc=SQLITE_NOMEM); } }else if( !isMainJrnl && pPg==0 ){ /* If this is a rollback of a savepoint and data was not written to |