summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-08 15:33:17 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-10 15:16:02 -0400
commit2d34690ae92215d355b0272001d9e68214dc80f6 (patch)
tree47cf08ac767962c88b2bf4f89837a29b76eb772c
parent62826f0052c1d6b71f62c1149c894d40549828ad (diff)
downloadsssd-2d34690ae92215d355b0272001d9e68214dc80f6.tar.gz
sssd-2d34690ae92215d355b0272001d9e68214dc80f6.tar.bz2
sssd-2d34690ae92215d355b0272001d9e68214dc80f6.zip
sysdb: return proper error code from sysdb_sudo_purge_all
-rw-r--r--src/db/sysdb_sudo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c
index 8f396ef5..b1f181aa 100644
--- a/src/db/sysdb_sudo.c
+++ b/src/db/sysdb_sudo.c
@@ -505,7 +505,7 @@ errno_t sysdb_sudo_purge_all(struct sysdb_ctx *sysdb)
ret = EOK;
done:
talloc_free(tmp_ctx);
- return EOK;
+ return ret;
}
errno_t sysdb_sudo_purge_byname(struct sysdb_ctx *sysdb,