From 6b758f3a86da4e7a1924d46eebda0f3144c8c979 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 9 Sep 2012 21:39:25 +0200 Subject: 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. --- src/providers/krb5/krb5_auth.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/providers') diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c index c3a9e62d..18209d71 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; } -- cgit