summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_share.c2
-rw-r--r--source4/libnet/libnet_share.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/source4/libnet/libnet_share.c b/source4/libnet/libnet_share.c
index 35980fdcbb..813407d1f4 100644
--- a/source4/libnet/libnet_share.c
+++ b/source4/libnet/libnet_share.c
@@ -130,7 +130,7 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx,
return status;
}
- s.in.level = r->in.level;
+ s.in.level = 2;
s.in.info.info2 = &r->in.share;
s.in.server_unc = talloc_asprintf(mem_ctx, "\\\\%s", r->in.server_name);
diff --git a/source4/libnet/libnet_share.h b/source4/libnet/libnet_share.h
index fdf162a066..f1e9a78a97 100644
--- a/source4/libnet/libnet_share.h
+++ b/source4/libnet/libnet_share.h
@@ -47,7 +47,6 @@ struct libnet_AddShare {
enum libnet_AddShare_level level;
struct {
const char * server_name;
- uint32_t level;
struct srvsvc_NetShareInfo2 share;
} in;
struct {