summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-06-24 00:25:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:46 -0500
commitdb8c78c497be9406d45acd4cff1ebbb566c0356a (patch)
tree1a71ac00ffc5e4336be8708d0df16a0273b9fa88
parentcf5fdae640e3678a68279b728d19a8aefb1b09ec (diff)
downloadsamba-db8c78c497be9406d45acd4cff1ebbb566c0356a.tar.gz
samba-db8c78c497be9406d45acd4cff1ebbb566c0356a.tar.bz2
samba-db8c78c497be9406d45acd4cff1ebbb566c0356a.zip
r1235: as the pidl code init all output data.
we should do it manualy too. metze (This used to be commit d3b80fd40a07575c18593523070986b7aed6de92)
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c4
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index ee3970d0f2..80bbb6b583 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -294,7 +294,7 @@ static NTSTATUS netr_ServerAuthenticate(struct dcesrv_call_state *dce_call, TALL
struct netr_ServerAuthenticate *r)
{
struct netr_ServerAuthenticate3 r3;
- uint32_t rid;
+ uint32_t rid = 0;
/* TODO:
* negotiate_flags is used as an [in] parameter
* so it need to be initialised.
@@ -320,7 +320,7 @@ static NTSTATUS netr_ServerAuthenticate2(struct dcesrv_call_state *dce_call, TAL
struct netr_ServerAuthenticate2 *r)
{
struct netr_ServerAuthenticate3 r3;
- uint32 rid;
+ uint32 rid = 0;
r3.in.server_name = r->in.server_name;
r3.in.account_name = r->in.account_name;
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 195a2b75f9..7eb24f4bd1 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -790,7 +790,7 @@ static NTSTATUS samr_CreateUser(struct dcesrv_call_state *dce_call, TALLOC_CTX *
struct samr_CreateUser *r)
{
struct samr_CreateUser2 r2;
- uint32_t access_granted;
+ uint32_t access_granted = 0;
/* a simple wrapper around samr_CreateUser2 works nicely */