diff options
author | Günther Deschner <gd@samba.org> | 2008-03-31 22:49:03 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-04-01 00:26:32 +0200 |
commit | dbe34cf0aeaeb66d3d505845b2b2c4ec5572741a (patch) | |
tree | 0502ddfedbe520f6bf4519321d17979ce8a079f9 | |
parent | 96801c3f63d52ca2f4fd4bf109898daa4b5a3363 (diff) | |
download | samba-dbe34cf0aeaeb66d3d505845b2b2c4ec5572741a.tar.gz samba-dbe34cf0aeaeb66d3d505845b2b2c4ec5572741a.tar.bz2 samba-dbe34cf0aeaeb66d3d505845b2b2c4ec5572741a.zip |
Fix _srvsvc_NetShareSetInfo.
Guenther
(This used to be commit 2fd90b62d7e61fa0c23f8f41e9f12fc16f29a8b1)
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 8 |
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: |