summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,