[SCM] Samba Shared Repository - branch v3-devel updated -
release-3-2-0pre2-4100-g7e8903b
Günther Deschner
gd at samba.org
Thu Sep 11 12:25:27 GMT 2008
The branch, v3-devel has been updated
via 7e8903b53beba3ad1bb8617ed435249257724be3 (commit)
via b42408f54ea61ad47f5a33085ab1532c67ceee83 (commit)
from f4cb75b1e2b030055b9c566f941277286095b8a7 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-devel
- Log -----------------------------------------------------------------
commit 7e8903b53beba3ad1bb8617ed435249257724be3
Author: Günther Deschner <gd at samba.org>
Date: Wed Sep 10 10:13:41 2008 +0200
netapi: fix NetShareEnum_r.
Guenther
commit b42408f54ea61ad47f5a33085ab1532c67ceee83
Author: Günther Deschner <gd at samba.org>
Date: Wed Sep 10 10:13:55 2008 +0200
netapi: fix NetShareGetInfo_r.
Guenther
-----------------------------------------------------------------------
Summary of changes:
source/lib/netapi/share.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/netapi/share.c b/source/lib/netapi/share.c
index 2752895..1d0e181 100644
--- a/source/lib/netapi/share.c
+++ b/source/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;
}
@@ -412,7 +415,7 @@ WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx,
union srvsvc_NetShareInfo info;
uint32_t num_entries = 0;
- if (!r->in.net_name) {
+ if (!r->in.net_name || !r->out.buffer) {
return WERR_INVALID_PARAM;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list