summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-10 10:13:55 +0200
committerGünther Deschner <gd@samba.org>2008-09-11 14:24:53 +0200
commit07585d9fb7bf8b7b8b22538f39208965c91a508a (patch)
treec63a0dd39fce8136fc10e34916434a3e9094a605 /source3/lib/netapi
parenta780ed8970a4d7229e3739946cde719e78a3ef2b (diff)
downloadsamba-07585d9fb7bf8b7b8b22538f39208965c91a508a.tar.gz
samba-07585d9fb7bf8b7b8b22538f39208965c91a508a.tar.bz2
samba-07585d9fb7bf8b7b8b22538f39208965c91a508a.zip
netapi: fix NetShareGetInfo_r.
Guenther (This used to be commit b42408f54ea61ad47f5a33085ab1532c67ceee83)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/share.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c
index 2752895387..8b9124b513 100644
--- a/source3/lib/netapi/share.c
+++ b/source3/lib/netapi/share.c
@@ -412,7 +412,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;
}