summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 16:20:11 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 03:29:28 +0200
commit2d8b65066e632c1a96b150e0cb5f7c361471ac31 (patch)
tree4bc4a31f80f152e4d0a85dba099053546d35223f /source3/libsmb
parent997a64f6fb11e19d78c0468d86c0c545a4e586d1 (diff)
downloadsamba-2d8b65066e632c1a96b150e0cb5f7c361471ac31.tar.gz
samba-2d8b65066e632c1a96b150e0cb5f7c361471ac31.tar.bz2
samba-2d8b65066e632c1a96b150e0cb5f7c361471ac31.zip
s3: Remove two talloc_autofree_context() calls
Both allocated blobs are freed in their routines
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clikrb5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index 704bcb929e..5d51a5b19c 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -355,7 +355,7 @@ bool unwrap_edata_ntstatus(TALLOC_CTX *mem_ctx,
}
asn1_start_tag(data, ASN1_CONTEXT(2));
- asn1_read_OctetString(data, talloc_autofree_context(), &edata_contents);
+ asn1_read_OctetString(data, talloc_tos(), &edata_contents);
asn1_end_tag(data);
asn1_end_tag(data);
asn1_end_tag(data);
@@ -398,7 +398,7 @@ bool unwrap_pac(TALLOC_CTX *mem_ctx, DATA_BLOB *auth_data, DATA_BLOB *unwrapped_
asn1_end_tag(data);
asn1_start_tag(data, ASN1_CONTEXT(1));
- asn1_read_OctetString(data, talloc_autofree_context(), &pac_contents);
+ asn1_read_OctetString(data, talloc_tos(), &pac_contents);
asn1_end_tag(data);
asn1_end_tag(data);
asn1_end_tag(data);