summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-05-01 04:05:53 +0000
committerAndrew Tridgell <tridge@samba.org>2001-05-01 04:05:53 +0000
commit7e82811d2d1b9ed06767625fff12755ced83bcad (patch)
tree49ef2dd6422af48c308648fabe7f313e142026c8 /source3/rpc_client
parente51cc47cec2e3a5fe4e23310f497bf6a13b0a577 (diff)
downloadsamba-7e82811d2d1b9ed06767625fff12755ced83bcad.tar.gz
samba-7e82811d2d1b9ed06767625fff12755ced83bcad.tar.bz2
samba-7e82811d2d1b9ed06767625fff12755ced83bcad.zip
fixed some uninitialised variables
(This used to be commit 5d899e51a4fc4e872da550b88ef603dbd2d8391f)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_lsarpc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c
index 649be20a52..c4e55c3749 100644
--- a/source3/rpc_client/cli_lsarpc.c
+++ b/source3/rpc_client/cli_lsarpc.c
@@ -297,7 +297,7 @@ uint32 lsa_open_policy(const char *system_name, POLICY_HND *hnd,
LSA_Q_OPEN_POL q_o;
LSA_SEC_QOS qos;
struct cli_connection *con = NULL;
- uint32 result;
+ uint32 result = NT_STATUS_UNSUCCESSFUL;
if (!cli_connection_init(system_name, PIPE_LSARPC, &con)) {
return NT_STATUS_UNSUCCESSFUL;
@@ -365,7 +365,7 @@ uint32 lsa_close(POLICY_HND *hnd)
prs_struct rbuf;
prs_struct buf;
LSA_Q_CLOSE q_c;
- uint32 result;
+ uint32 result = NT_STATUS_UNSUCCESSFUL;
if (hnd == NULL) return False;
@@ -419,7 +419,7 @@ uint32 lsa_lookup_sids(POLICY_HND *hnd, int num_sids, DOM_SID *sids,
prs_struct buf;
LSA_Q_LOOKUP_SIDS q_l;
TALLOC_CTX *ctx = talloc_init();
- uint32 result;
+ uint32 result = NT_STATUS_UNSUCCESSFUL;
ZERO_STRUCT(q_l);
@@ -454,7 +454,7 @@ uint32 lsa_lookup_sids(POLICY_HND *hnd, int num_sids, DOM_SID *sids,
LSA_R_LOOKUP_SIDS r_l;
DOM_R_REF ref;
LSA_TRANS_NAME_ENUM t_names;
- BOOL p, valid_response;
+ BOOL p, valid_response = False;
r_l.dom_ref = &ref;
r_l.names = &t_names;
@@ -576,7 +576,7 @@ uint32 lsa_lookup_names(POLICY_HND *hnd, int num_names, char **names,
LSA_Q_LOOKUP_NAMES q_l;
BOOL valid_response = False;
TALLOC_CTX *ctx = talloc_init();
- uint32 result;
+ uint32 result = NT_STATUS_UNSUCCESSFUL;
if (hnd == NULL || num_sids == 0 || sids == NULL) return False;