summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-04-09 17:11:57 -0400
committerSimo Sorce <idra@samba.org>2008-04-09 17:12:56 -0400
commit55809f5029788892919bd7f6ec305ae9df858038 (patch)
tree82ac659ed71900c46d70913954f9742ede9586d8 /source4/libcli
parent5c3e4797b68a6ecffd2eeafe1152da1f3cea344d (diff)
downloadsamba-55809f5029788892919bd7f6ec305ae9df858038.tar.gz
samba-55809f5029788892919bd7f6ec305ae9df858038.tar.bz2
samba-55809f5029788892919bd7f6ec305ae9df858038.zip
Make sure we do not reference req after it has been freed
(This used to be commit a13f64bf54afc22516d1f6a786dfec67389cb754)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/cldap/cldap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/cldap/cldap.c b/source4/libcli/cldap/cldap.c
index d10eeb8ffd..d9910285d9 100644
--- a/source4/libcli/cldap/cldap.c
+++ b/source4/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);