summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-09-09 21:39:25 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-10 10:28:14 +0200
commit6b758f3a86da4e7a1924d46eebda0f3144c8c979 (patch)
tree64c49c22f97ff52384eab03a7df05758d74a26cc
parent73505920a70e33977e84c69b4c3c598f683b7526 (diff)
downloadsssd-6b758f3a86da4e7a1924d46eebda0f3144c8c979.tar.gz
sssd-6b758f3a86da4e7a1924d46eebda0f3144c8c979.tar.xz
sssd-6b758f3a86da4e7a1924d46eebda0f3144c8c979.zip
KRB5: cancel the sysdb transaction on one place only
https://fedorahosted.org/sssd/ticket/1516 If sysdb_set_user_attr failed, we would cancel the transaction, then go to the error handler and attempt to close it again.
-rw-r--r--src/providers/krb5/krb5_auth.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index c3a9e62de..18209d717 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -165,7 +165,6 @@ static int krb5_mod_ccname(TALLOC_CTX *mem_ctx,
ret = sysdb_set_user_attr(sysdb, name, attrs, mod_op);
if (ret != EOK) {
DEBUG(6, ("Error: %d (%s)\n", ret, strerror(ret)));
- sysdb_transaction_cancel(sysdb);
goto done;
}