summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv_cmd.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-10-22 13:01:31 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-10-26 08:00:21 -0400
commit487c19b3871cebbdb703bb337d15abd31ec206db (patch)
tree2a3731207107ff33e2176750cc6d138f1d4efc3d /src/responder/nss/nsssrv_cmd.c
parent4967fe0bc52580f7e96974e30d3cf2f33fadaabe (diff)
downloadsssd-487c19b3871cebbdb703bb337d15abd31ec206db.tar.gz
sssd-487c19b3871cebbdb703bb337d15abd31ec206db.tar.xz
sssd-487c19b3871cebbdb703bb337d15abd31ec206db.zip
Always use talloc_zero() to allocate cmdctx
Diffstat (limited to 'src/responder/nss/nsssrv_cmd.c')
-rw-r--r--src/responder/nss/nsssrv_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index e6437a621..65d9c5801 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -1301,7 +1301,7 @@ static int nss_cmd_getpwent(struct cli_ctx *cctx)
DEBUG(4, ("Requesting info for all accounts\n"));
- cmdctx = talloc(cctx, struct nss_cmd_ctx);
+ cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
if (!cmdctx) {
return ENOMEM;
}
@@ -2630,7 +2630,7 @@ static int nss_cmd_getgrent(struct cli_ctx *cctx)
DEBUG(4, ("Requesting info for all groups\n"));
- cmdctx = talloc(cctx, struct nss_cmd_ctx);
+ cmdctx = talloc_zero(cctx, struct nss_cmd_ctx);
if (!cmdctx) {
return ENOMEM;
}