From c11be6fe8ed5d72d7b5f9c2ab86a91e7c43d30ac Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 29 Apr 2009 10:05:23 -0400 Subject: Fix use of uninitialized return variable --- server/responder/nss/nsssrv_cmd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server') diff --git a/server/responder/nss/nsssrv_cmd.c b/server/responder/nss/nsssrv_cmd.c index 0f0c0b94..5fd6369b 100644 --- a/server/responder/nss/nsssrv_cmd.c +++ b/server/responder/nss/nsssrv_cmd.c @@ -285,7 +285,7 @@ static void nss_cmd_getpwnam_callback(void *ptr, int status, default: DEBUG(1, ("getpwnam call returned more than one result !?!\n")); - ret = nss_cmd_send_error(cmdctx, ret); + ret = nss_cmd_send_error(cmdctx, ENOENT); if (ret != EOK) { NSS_CMD_FATAL_ERROR(cctx); } @@ -654,7 +654,7 @@ static void nss_cmd_getpwuid_callback(void *ptr, int status, default: DEBUG(1, ("getpwuid call returned more than one result !?!\n")); - ret = nss_cmd_send_error(cmdctx, ret); + ret = nss_cmd_send_error(cmdctx, ENOENT); if (ret != EOK) { NSS_CMD_FATAL_ERROR(cctx); } @@ -951,7 +951,7 @@ static void nss_cmd_setpwent_callback(void *ptr, int status, int ret; if (status != LDB_SUCCESS) { - ret = nss_cmd_send_error(cmdctx, ret); + ret = nss_cmd_send_error(cmdctx, ENOENT); if (ret != EOK) { NSS_CMD_FATAL_ERROR(cctx); } @@ -2303,7 +2303,7 @@ static void nss_cmd_setgrent_callback(void *ptr, int status, int ret; if (status != LDB_SUCCESS) { - ret = nss_cmd_send_error(cmdctx, ret); + ret = nss_cmd_send_error(cmdctx, ENOENT); if (ret != EOK) { NSS_CMD_FATAL_ERROR(cctx); } @@ -2824,7 +2824,7 @@ static void nss_cmd_getinit_callback(void *ptr, int status, default: DEBUG(1, ("getpwnam call returned more than one result !?!\n")); - ret = nss_cmd_send_error(cmdctx, ret); + ret = nss_cmd_send_error(cmdctx, ENOENT); if (ret != EOK) { NSS_CMD_FATAL_ERROR(cctx); } -- cgit