netapi: fix NetShareGetInfo_r.
authorGünther Deschner <gd@samba.org>
Wed, 10 Sep 2008 08:13:55 +0000 (10:13 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 11 Sep 2008 12:24:53 +0000 (14:24 +0200)
Guenther
(This used to be commit b42408f54ea61ad47f5a33085ab1532c67ceee83)

source3/lib/netapi/share.c

index 27528953875b21f5fa0e041ae9a686a22a53c32e..8b9124b5130136b925790fbcf06df238c657b7f0 100644 (file)
@@ -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;
        }