diff options
-rw-r--r-- | source3/lib/netapi/share.c | 2 |
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; } |