diff options
author | Michal Zidek <mzidek@redhat.com> | 2012-08-15 10:56:21 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-04 13:56:32 +0200 |
commit | 3a59cbd0b7b9c5dd3c62ac1679876070c264d80f (patch) | |
tree | 0f5440da7b11b227e638a33e2d3600622c41e6c7 /src/db/sysdb_ssh.c | |
parent | 28943451c1b0f01845266b0f13cc3772c2b1d66f (diff) | |
download | sssd-3a59cbd0b7b9c5dd3c62ac1679876070c264d80f.tar.gz sssd-3a59cbd0b7b9c5dd3c62ac1679876070c264d80f.tar.bz2 sssd-3a59cbd0b7b9c5dd3c62ac1679876070c264d80f.zip |
Unify usage of sysdb transactions (part 2).
Diffstat (limited to 'src/db/sysdb_ssh.c')
-rw-r--r-- | src/db/sysdb_ssh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/db/sysdb_ssh.c b/src/db/sysdb_ssh.c index a4d4345b..5b956cdd 100644 --- a/src/db/sysdb_ssh.c +++ b/src/db/sysdb_ssh.c @@ -31,6 +31,7 @@ sysdb_store_ssh_host(struct sysdb_ctx *sysdb, { TALLOC_CTX *tmp_ctx; errno_t ret; + errno_t sret; struct ldb_message **hosts; size_t num_hosts; struct ldb_message_element *el; @@ -129,7 +130,10 @@ sysdb_store_ssh_host(struct sysdb_ctx *sysdb, done: if (in_transaction) { - sysdb_transaction_cancel(sysdb); + sret = sysdb_transaction_cancel(sysdb); + if (sret != EOK) { + DEBUG(SSSDBG_CRIT_FAILURE, ("Could not cancel transaction\n")); + } } talloc_free(tmp_ctx); |