summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-10-28 12:21:44 +0100
committerStefan Metzmacher <metze@samba.org>2008-10-28 12:21:44 +0100
commit7a4d937fd9e80e27d58584bc1a4d3dddc88ba74d (patch)
treeb3893ac7f0573a59e4031661ec3be0d9b286b1f8 /source4/rpc_server
parent6bc9fb887fa685a595b019c5ad6fc77f2fa3e914 (diff)
downloadsamba-7a4d937fd9e80e27d58584bc1a4d3dddc88ba74d.tar.gz
samba-7a4d937fd9e80e27d58584bc1a4d3dddc88ba74d.tar.bz2
samba-7a4d937fd9e80e27d58584bc1a4d3dddc88ba74d.zip
s4: lsa-server: fix crash bugs related to [out,ref] ** changes
metze
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 0041c5fa84..6507c75ae2 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -1387,12 +1387,12 @@ static NTSTATUS dcesrv_lsa_QueryTrustedDomainInfo(struct dcesrv_call_state *dce_
case LSA_TRUSTED_DOMAIN_INFO_INFO_EX2_INTERNAL:
/* oops, we don't want to return the info after all */
talloc_free(info);
- r->out.info = NULL;
+ *r->out.info = NULL;
return NT_STATUS_INVALID_PARAMETER;
default:
/* oops, we don't want to return the info after all */
talloc_free(info);
- r->out.info = NULL;
+ *r->out.info = NULL;
return NT_STATUS_INVALID_INFO_CLASS;
}
@@ -2981,8 +2981,8 @@ static NTSTATUS dcesrv_lsa_QueryDomainInformationPolicy(struct dcesrv_call_state
dce_call->conn->dce_ctx->lp_ctx,
&smb_krb5_context);
if (ret != 0) {
- talloc_free(r->out.info);
- r->out.info = NULL;
+ talloc_free(info);
+ *r->out.info = NULL;
return NT_STATUS_INTERNAL_ERROR;
}
k->enforce_restrictions = 0; /* FIXME, details missing from MS-LSAD 2.2.53 */