From 487c19b3871cebbdb703bb337d15abd31ec206db Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 22 Oct 2010 13:01:31 +0200 Subject: Always use talloc_zero() to allocate cmdctx --- src/responder/nss/nsssrv_cmd.c | 4 ++-- src/responder/nss/nsssrv_netgroup.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/responder') 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; } -- cgit