~ubuntu-branches/ubuntu/utopic/389-ds-base/utopic-proposed

« back to all changes in this revision

Viewing changes to ldap/servers/slapd/backend.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-02-03 11:08:50 UTC
  • mfrom: (0.2.1)
  • Revision ID: package-import@ubuntu.com-20140203110850-tjzx85elnke9fiu3
Tags: 1.3.2.9-1
* New upstream release.
  - fixes CVE-2013-0336 (Closes: #704077)
  - fixes CVE-2013-1897 (Closes: #704421)
  - fixes CVE-2013-2219 (Closes: #718325)
  - fixes CVE-2013-4283 (Closes: #721222)
  - fixes CVE-2013-4485 (Closes: #730115)
* Drop fix-CVE-2013-0312.diff, upstream.
* rules: Add new scripts to rename.
* fix-sasl-path.diff: Use a triplet path to find libsasl2. (LP:
  #1088822)
* admin_scripts.diff: Add patch from upstream #47511 to fix bashisms.
* control: Add ldap-utils to -base depends.
* rules, rename-online-scripts.diff: Some scripts with .pl suffix are
  meant for an online server, so instead of overwriting the offline
  scripts use -online suffix.
* rules: Enable parallel build, but limit the jobs to 1 for
  dh_auto_install.
* control: Bump policy to 3.9.5, no changes.
* rules: Add get-orig-source target.
* lintian-overrides: Drop obsolete entries, add comments for the rest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
648
648
slapi_back_transaction_begin(Slapi_PBlock *pb)
649
649
{
650
650
    IFP txn_begin;
651
 
    slapi_pblock_get(pb, SLAPI_PLUGIN_DB_BEGIN_FN, (void*)&txn_begin);
652
 
    return txn_begin(pb);
 
651
    if(slapi_pblock_get(pb, SLAPI_PLUGIN_DB_BEGIN_FN, (void*)&txn_begin) ||
 
652
       !txn_begin)
 
653
    {
 
654
        return SLAPI_BACK_TRANSACTION_NOT_SUPPORTED;
 
655
    } else {
 
656
        return txn_begin(pb);
 
657
    }
653
658
}
654
659
 
655
660
/* API to expose DB transaction commit */
657
662
slapi_back_transaction_commit(Slapi_PBlock *pb)
658
663
{
659
664
    IFP txn_commit;
660
 
    slapi_pblock_get(pb, SLAPI_PLUGIN_DB_COMMIT_FN, (void*)&txn_commit);
661
 
    return txn_commit(pb);
 
665
    if(slapi_pblock_get(pb, SLAPI_PLUGIN_DB_COMMIT_FN, (void*)&txn_commit) ||
 
666
        !txn_commit)
 
667
    {
 
668
        return SLAPI_BACK_TRANSACTION_NOT_SUPPORTED;
 
669
    } else {
 
670
        return txn_commit(pb);
 
671
    }
662
672
}
663
673
 
664
674
/* API to expose DB transaction abort */
666
676
slapi_back_transaction_abort(Slapi_PBlock *pb)
667
677
{
668
678
    IFP txn_abort;
669
 
    slapi_pblock_get(pb, SLAPI_PLUGIN_DB_ABORT_FN, (void*)&txn_abort);
670
 
    return txn_abort(pb);
 
679
    if(slapi_pblock_get(pb, SLAPI_PLUGIN_DB_ABORT_FN, (void*)&txn_abort) ||
 
680
        !txn_abort)
 
681
    {
 
682
        return SLAPI_BACK_TRANSACTION_NOT_SUPPORTED;
 
683
    } else {
 
684
        return txn_abort(pb);
 
685
    }
671
686
}