summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-03-31 22:49:03 +0200
committerGünther Deschner <gd@samba.org>2008-04-01 00:26:32 +0200
commitdbe34cf0aeaeb66d3d505845b2b2c4ec5572741a (patch)
tree0502ddfedbe520f6bf4519321d17979ce8a079f9 /source3/rpc_server
parent96801c3f63d52ca2f4fd4bf109898daa4b5a3363 (diff)
downloadsamba-dbe34cf0aeaeb66d3d505845b2b2c4ec5572741a.tar.gz
samba-dbe34cf0aeaeb66d3d505845b2b2c4ec5572741a.tar.bz2
samba-dbe34cf0aeaeb66d3d505845b2b2c4ec5572741a.zip
Fix _srvsvc_NetShareSetInfo.
Guenther (This used to be commit 2fd90b62d7e61fa0c23f8f41e9f12fc16f29a8b1)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 8359511939..6d7561ed5f 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1484,7 +1484,9 @@ WERROR _srvsvc_NetShareSetInfo(pipes_struct *p,
return WERR_NOMEM;
}
- *r->out.parm_error = 0;
+ if (r->out.parm_error) {
+ *r->out.parm_error = 0;
+ }
if ( strequal(share_name,"IPC$")
|| ( lp_enable_asu_support() && strequal(share_name,"ADMIN$") )
@@ -1515,8 +1517,8 @@ WERROR _srvsvc_NetShareSetInfo(pipes_struct *p,
switch (r->in.level) {
case 1:
pathname = talloc_strdup(ctx, lp_pathname(snum));
- comment = talloc_strdup(ctx, info->info2->comment);
- type = info->info2->type;
+ comment = talloc_strdup(ctx, info->info1->comment);
+ type = info->info1->type;
psd = NULL;
break;
case 2: