>From d0eec070284159653317bd1d4cd97b7769125f06 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 25 Apr 2012 16:17:35 +0200 Subject: [PATCH 01/18] 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index f579ba8b8a8d7117f12022ca1659fe9528381b35..8f396ef5c5445e5c250bdfeecbdc7369bf0bfb4b 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 -- 1.7.7.6