diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-04-29 10:05:23 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-04-29 10:05:23 -0400 |
commit | c11be6fe8ed5d72d7b5f9c2ab86a91e7c43d30ac (patch) | |
tree | ed7a1f7dd19a33059e6ef88b466e7bacbbfaa863 /server/responder/nss | |
parent | 38c0b3bda24f89b0559a3f53e31ec722c186171f (diff) | |
download | sssd-c11be6fe8ed5d72d7b5f9c2ab86a91e7c43d30ac.tar.gz sssd-c11be6fe8ed5d72d7b5f9c2ab86a91e7c43d30ac.tar.bz2 sssd-c11be6fe8ed5d72d7b5f9c2ab86a91e7c43d30ac.zip |
Fix use of uninitialized return variable
Diffstat (limited to 'server/responder/nss')
-rw-r--r-- | server/responder/nss/nsssrv_cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |