From 69e7d6649b58c66675ef38084868fc5356c5a240 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 25 Apr 2012 16:17:35 +0200 Subject: SUDO: Return ret, not EOK This patch fixes bad refactoring - the function used to return value directly on error and EOK as the last statement. If was then converted into using goto label, but the last statement was still returning EOK instead of the value it should. --- src/db/sysdb_sudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index f579ba8b..8f396ef5 100644 --- a/src/db/sysdb_sudo.c +++ b/src/db/sysdb_sudo.c @@ -336,7 +336,7 @@ sysdb_get_sudo_user_info(TALLOC_CTX *mem_ctx, const char *username, *groupnames = talloc_steal(mem_ctx, sysdb_groupnames); done: talloc_free(tmp_ctx); - return EOK; + return ret; } errno_t -- cgit