diff options
author | Günther Deschner <gd@samba.org> | 2008-09-26 01:32:16 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-26 18:34:21 +0200 |
commit | f50ebbe29ff13d43ae8544c273247173ff12d45a (patch) | |
tree | a6662b8db2497e602d76b4cfff163ffc058a816c /source3/rpc_server | |
parent | da6c7aa2a1ff658777d522077430f9bf410d58d3 (diff) | |
download | samba-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/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 4 |
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); |