summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-29 13:27:59 -0700
committerJeremy Allison <jra@samba.org>2008-10-29 13:27:59 -0700
commit7c5f369fafee42b555c3e2b3e3482689b508fe4a (patch)
tree866b602ba8fe9a5914b0fcfba4ff844253230297
parent7c53ffea28a5752bf28c23b4741ceba77ff1fe1f (diff)
parentc7dcf7da55224bc2b704d8c86ba4867c251e9eac (diff)
downloadsamba-7c5f369fafee42b555c3e2b3e3482689b508fe4a.tar.gz
samba-7c5f369fafee42b555c3e2b3e3482689b508fe4a.tar.bz2
samba-7c5f369fafee42b555c3e2b3e3482689b508fe4a.zip
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
-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 */