summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-03 10:09:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:20 -0500
commitc6597384ba1c3db03cc21a771737123f70391fb9 (patch)
tree29dd09e9731aafbce148d356c6450158704275fc /source3/rpc_server
parent3f1978c059a126330f66de046f98f25b7f1346f5 (diff)
downloadsamba-c6597384ba1c3db03cc21a771737123f70391fb9.tar.gz
samba-c6597384ba1c3db03cc21a771737123f70391fb9.tar.bz2
samba-c6597384ba1c3db03cc21a771737123f70391fb9.zip
r20013: Fix segfaults: parm_error is a unique in/out ptr
(This used to be commit 0104371dd648204c9e8102cdc399539857be4a63)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 2dae3c598f..5b24b3d2b8 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -1146,7 +1146,9 @@ net server set info
WERROR _srvsvc_NetSrvSetInfo(pipes_struct *p, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, uint32_t *parm_error)
{
/* Set up the net server set info structure. */
- *parm_error = 0;
+ if (parm_error) {
+ *parm_error = 0;
+ }
return WERR_OK;
}
@@ -1391,7 +1393,9 @@ WERROR _srvsvc_NetShareSetInfo(pipes_struct *p, const char *server_unc, const ch
DEBUG(5,("_srv_net_share_set_info: %d\n", __LINE__));
- *parm_error = 0;
+ if (parm_error) {
+ *parm_error = 0;
+ }
if ( strequal(share_name,"IPC$")
|| ( lp_enable_asu_support() && strequal(share_name,"ADMIN$") )
@@ -1578,7 +1582,9 @@ WERROR _srvsvc_NetShareAdd(pipes_struct *p, const char *server_unc,
DEBUG(5,("_srv_net_share_add: %d\n", __LINE__));
- *parm_error = 0;
+ if (parm_error) {
+ *parm_error = 0;
+ }
is_disk_op = user_has_privileges( p->pipe_user.nt_user_token,
&se_diskop );