summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-09-26 01:32:16 +0200
committerGünther Deschner <gd@samba.org>2008-09-26 18:34:21 +0200
commitf50ebbe29ff13d43ae8544c273247173ff12d45a (patch)
treea6662b8db2497e602d76b4cfff163ffc058a816c /source3
parentda6c7aa2a1ff658777d522077430f9bf410d58d3 (diff)
downloadsamba-f50ebbe29ff13d43ae8544c273247173ff12d45a.tar.gz
samba-f50ebbe29ff13d43ae8544c273247173ff12d45a.tar.bz2
samba-f50ebbe29ff13d43ae8544c273247173ff12d45a.zip
s3-srvsvc: fix _srvsvc_NetShareAdd segfault.
parm_err is not a ref pointer. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index bb9c3687fb..fb7478653d 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1700,7 +1700,9 @@ WERROR _srvsvc_NetShareAdd(pipes_struct *p,
DEBUG(5,("_srvsvc_NetShareAdd: %d\n", __LINE__));
- *r->out.parm_error = 0;
+ if (r->out.parm_error) {
+ *r->out.parm_error = 0;
+ }
get_current_user(&user,p);