summaryrefslogtreecommitdiff
path: root/server/responder/nss
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-04-30 15:33:51 -0400
committerSimo Sorce <ssorce@redhat.com>2009-05-06 08:51:50 -0400
commit4f88dcb91128aae87c8c2d95446d5303a1b0620f (patch)
treec56ce905b3d62e100ae95b9cadc36725ed876de9 /server/responder/nss
parent4a26a29404e901ceca0a42bac18084b5d3e1f210 (diff)
downloadsssd-4f88dcb91128aae87c8c2d95446d5303a1b0620f.tar.gz
sssd-4f88dcb91128aae87c8c2d95446d5303a1b0620f.tar.bz2
sssd-4f88dcb91128aae87c8c2d95446d5303a1b0620f.zip
Fix some more return paths using uninitalized ret
Diffstat (limited to 'server/responder/nss')
-rw-r--r--server/responder/nss/nsssrv_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/responder/nss/nsssrv_cmd.c b/server/responder/nss/nsssrv_cmd.c
index 5fd6369b..cf491ccf 100644
--- a/server/responder/nss/nsssrv_cmd.c
+++ b/server/responder/nss/nsssrv_cmd.c
@@ -414,7 +414,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);
}
@@ -771,7 +771,7 @@ static void nss_cmd_getpwuid_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);
}
@@ -2957,7 +2957,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);
}