From d020c51978727185803edc5575adaf485b6e894e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 6 Dec 2012 18:15:12 +0100 Subject: [PATCH] s3-netapi: Initialize group_handle of NetUserSetGroups_r. Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- source3/lib/netapi/user.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c index 3003a393971..dfcbb095a9b 100644 --- a/source3/lib/netapi/user.c +++ b/source3/lib/netapi/user.c @@ -3150,6 +3150,7 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx, ZERO_STRUCT(connect_handle); ZERO_STRUCT(domain_handle); + ZERO_STRUCT(group_handle); if (!r->in.buffer) { return WERR_INVALID_PARAM; -- 2.11.4.GIT