summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-05-08 13:33:17 (GMT)
committerStephen Gallagher <sgallagh@redhat.com>2012-05-10 19:16:02 (GMT)
commit2d34690ae92215d355b0272001d9e68214dc80f6 (patch)
tree47cf08ac767962c88b2bf4f89837a29b76eb772c
parent62826f0052c1d6b71f62c1149c894d40549828ad (diff)
downloadsssd-2d34690ae92215d355b0272001d9e68214dc80f6.zip
sssd-2d34690ae92215d355b0272001d9e68214dc80f6.tar.gz
sssd-2d34690ae92215d355b0272001d9e68214dc80f6.tar.xz
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 8f396ef..b1f181a 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,