summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-21 03:53:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-21 03:53:44 +0000
commit93d25c293ff1a763f275e1769cabf68058f09a4e (patch)
tree9075b99d70b2d457a33756811a93f2e83bfd9620 /source3/rpc_server
parente76d514f57cad66361cb8d900db36f92edb814aa (diff)
downloadsamba-93d25c293ff1a763f275e1769cabf68058f09a4e.tar.gz
samba-93d25c293ff1a763f275e1769cabf68058f09a4e.tar.bz2
samba-93d25c293ff1a763f275e1769cabf68058f09a4e.zip
Make sure to initaliase SAM_ACCOUNT pointers to NULL, otherwise pdb_init_sam()
fails. Andrew Bartlett (This used to be commit 56009ffbaa00259d15f286248a7ab73c55371819)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index d6aea7cd63..e47619eb74 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2719,7 +2719,7 @@ NTSTATUS _samr_query_aliasmem(pipes_struct *p, SAMR_Q_QUERY_ALIASMEM *q_u, SAMR_
fstring alias_sid_str;
DOM_SID temp_sid;
- SAM_ACCOUNT *sam_user;
+ SAM_ACCOUNT *sam_user = NULL;
BOOL check;
/* find the policy handle. open a policy on it. */
@@ -2815,7 +2815,7 @@ NTSTATUS _samr_query_groupmem(pipes_struct *p, SAMR_Q_QUERY_GROUPMEM *q_u, SAMR_
uint32 *rid=NULL;
uint32 *attr=NULL;
- SAM_ACCOUNT *sam_user;
+ SAM_ACCOUNT *sam_user = NULL;
BOOL check;
@@ -2904,7 +2904,7 @@ NTSTATUS _samr_add_aliasmem(pipes_struct *p, SAMR_Q_ADD_ALIASMEM *q_u, SAMR_R_AD
uint32 rid;
GROUP_MAP map;
NTSTATUS ret;
- SAM_ACCOUNT *sam_user;
+ SAM_ACCOUNT *sam_user = NULL;
BOOL check;
/* Find the policy handle. Open a policy on it. */