[SCM] Samba Shared Repository - branch v4-0-test updated -
release-4-0-0alpha3-86-ga13f64b
Simo Sorce
idra at samba.org
Wed Apr 9 21:19:01 GMT 2008
The branch, v4-0-test has been updated
via a13f64bf54afc22516d1f6a786dfec67389cb754 (commit)
from 596fc05785020cd7bd6d15d91b49172039f83bab (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test
- Log -----------------------------------------------------------------
commit a13f64bf54afc22516d1f6a786dfec67389cb754
Author: Simo Sorce <idra at samba.org>
Date: Wed Apr 9 17:11:57 2008 -0400
Make sure we do not reference req after it has been freed
-----------------------------------------------------------------------
Summary of changes:
source/libcli/cldap/cldap.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libcli/cldap/cldap.c b/source/libcli/cldap/cldap.c
index d10eeb8..d991028 100644
--- a/source/libcli/cldap/cldap.c
+++ b/source/libcli/cldap/cldap.c
@@ -601,8 +601,11 @@ NTSTATUS cldap_netlogon_recv(struct cldap_request *req,
NTSTATUS status;
enum ndr_err_code ndr_err;
struct cldap_search search;
+ struct cldap_socket *cldap;
DATA_BLOB *data;
+ cldap = req->cldap;
+
status = cldap_search_recv(req, mem_ctx, &search);
if (!NT_STATUS_IS_OK(status)) {
return status;
@@ -620,7 +623,7 @@ NTSTATUS cldap_netlogon_recv(struct cldap_request *req,
data = search.out.response->attributes[0].values;
ndr_err = ndr_pull_union_blob_all(data, mem_ctx,
- req->cldap->iconv_convenience,
+ cldap->iconv_convenience,
&io->out.netlogon,
io->in.version & 0xF,
(ndr_pull_flags_fn_t)ndr_pull_nbt_cldap_netlogon);
--
Samba Shared Repository
More information about the samba-cvs
mailing list