summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-10 10:13:41 +0200
committerGünther Deschner <gd@samba.org>2008-09-11 14:25:02 +0200
commit93eb9860c6e26bf53bb103e758c935987dba27c8 (patch)
tree4d9f473955c64d02a3890ab148d0b323b4881530 /source3
parent07585d9fb7bf8b7b8b22538f39208965c91a508a (diff)
downloadsamba-93eb9860c6e26bf53bb103e758c935987dba27c8.tar.gz
samba-93eb9860c6e26bf53bb103e758c935987dba27c8.tar.bz2
samba-93eb9860c6e26bf53bb103e758c935987dba27c8.zip
netapi: fix NetShareEnum_r.
Guenther (This used to be commit 7e8903b53beba3ad1bb8617ed435249257724be3)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/share.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c
index 8b9124b513..1d0e1810f1 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;
}