summaryrefslogtreecommitdiff
path: root/source4/rpc_server/srvsvc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-29 14:49:41 +0100
committerGünther Deschner <gd@samba.org>2008-10-29 21:06:38 +0100
commitc7dcf7da55224bc2b704d8c86ba4867c251e9eac (patch)
tree52d92cbb23079060477fa2dda9b953f6b0d05d0a /source4/rpc_server/srvsvc
parentd1f980444d22e41659af0d3681f81162b914aa61 (diff)
downloadsamba-c7dcf7da55224bc2b704d8c86ba4867c251e9eac.tar.gz
samba-c7dcf7da55224bc2b704d8c86ba4867c251e9eac.tar.bz2
samba-c7dcf7da55224bc2b704d8c86ba4867c251e9eac.zip
s4-srvsvc-server: fix obvious level mismatch in dcesrv_srvsvc_NetShareAdd().
Guenther
Diffstat (limited to 'source4/rpc_server/srvsvc')
-rw-r--r--source4/rpc_server/srvsvc/dcesrv_srvsvc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
index 8dc42bf43b..58eed57f0f 100644
--- a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
+++ b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
@@ -503,7 +503,7 @@ static WERROR dcesrv_srvsvc_NetShareAdd(struct dcesrv_call_state *dce_call, TALL
if (r->in.info.info2->password && r->in.info.info2->password[0]) {
info[i].name = SHARE_PASSWORD;
info[i].type = SHARE_INFO_STRING;
- info[i].value = talloc_strdup(info, r->in.info.info502->password);
+ info[i].value = talloc_strdup(info, r->in.info.info2->password);
W_ERROR_HAVE_NO_MEMORY(info[i].value);
i++;
@@ -577,7 +577,7 @@ static WERROR dcesrv_srvsvc_NetShareAdd(struct dcesrv_call_state *dce_call, TALL
info[i].type = SHARE_INFO_STRING;
/* Windows will send a path in a form of C:\example\path */
- if (r->in.info.info2->path[1] == ':') {
+ if (r->in.info.info502->path[1] == ':') {
info[i].value = talloc_strdup(info, &r->in.info.info502->path[2]);
} else {
/* very strange let's try to set as is */