From 93eb9860c6e26bf53bb103e758c935987dba27c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Wed, 10 Sep 2008 10:13:41 +0200 Subject: [PATCH] netapi: fix NetShareEnum_r. Guenther (This used to be commit 7e8903b53beba3ad1bb8617ed435249257724be3) --- source3/lib/netapi/share.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c index 8b9124b5130..1d0e1810f15 100644 --- a/source3/lib/netapi/share.c +++ b/source3/lib/netapi/share.c @@ -337,12 +337,15 @@ WERROR NetShareEnum_r(struct libnetapi_ctx *ctx, info_ctr.level = r->in.level; switch (r->in.level) { case 0: + ZERO_STRUCT(ctr0); info_ctr.ctr.ctr0 = &ctr0; - break; + break; case 1: + ZERO_STRUCT(ctr1); info_ctr.ctr.ctr1 = &ctr1; break; case 2: + ZERO_STRUCT(ctr2); info_ctr.ctr.ctr2 = &ctr2; break; } -- 2.11.4.GIT