~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/softoken/sdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
/*
325
325
 * Map SQL_LITE errors to PKCS #11 errors as best we can.
326
326
 */
327
 
static int 
 
327
static CK_RV
328
328
sdb_mapSQLError(sdbDataType type, int sqlerr)
329
329
{
330
330
    switch (sqlerr) {
731
731
 
732
732
loser: 
733
733
    if (findstmt) {
 
734
        sqlite3_reset(findstmt);
734
735
        sqlite3_finalize(findstmt);
735
736
    }
736
737
    if (sqlDB) {
1718
1719
     * a database */
1719
1720
    if (create) {
1720
1721
        /* NO NSPR call for this? :( */
 
1722
#ifndef WINCE
1721
1723
        chmod (dbname, 0600);
 
1724
#endif
1722
1725
    }
1723
1726
 
1724
1727
    if (flags != SDB_RDONLY) {
1975
1978
    int inUpdate;
1976
1979
    PRUint32 accessOps;
1977
1980
 
1978
 
    *certdb = NULL;
1979
 
    *keydb = NULL;
 
1981
    if (certdb) 
 
1982
        *certdb = NULL;
 
1983
    if (keydb) 
 
1984
        *keydb = NULL;
1980
1985
    *newInit = 0;
1981
1986
 
1982
1987
#ifdef SQLITE_UNSAFE_THREADS