summaryrefslogtreecommitdiff
path: root/src/responder
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
parent4967fe0bc52580f7e96974e30d3cf2f33fadaabe (diff)
downloadsssd-487c19b3871cebbdb703bb337d15abd31ec206db.tar.gz
sssd-487c19b3871cebbdb703bb337d15abd31ec206db.tar.bz2
sssd-487c19b3871cebbdb703bb337d15abd31ec206db.zip
Always use talloc_zero() to allocate cmdctx
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/nss/nsssrv_cmd.c4
-rw-r--r--src/responder/nss/nsssrv_netgroup.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index e6437a62..65d9c580 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;
}
diff --git a/src/responder/nss/nsssrv_netgroup.c b/src/responder/nss/nsssrv_netgroup.c
index feda556f..1ac26082 100644
--- a/src/responder/nss/nsssrv_netgroup.c
+++ b/src/responder/nss/nsssrv_netgroup.c
@@ -595,7 +595,7 @@ int nss_cmd_getnetgrent(struct cli_ctx *client)
DEBUG(4, ("Requesting netgroup data\n"));
- cmdctx = talloc(client, struct nss_cmd_ctx);
+ cmdctx = talloc_zero(client, struct nss_cmd_ctx);
if (!cmdctx) {
return ENOMEM;
}