s3: Remove two talloc_autofree_context() calls
authorVolker Lendecke <vl@samba.org>
Sat, 25 Sep 2010 23:20:11 +0000 (16:20 -0700)
committerVolker Lendecke <vl@samba.org>
Sun, 26 Sep 2010 01:29:28 +0000 (03:29 +0200)
Both allocated blobs are freed in their routines

source3/libsmb/clikrb5.c

index 704bcb929ec66fd26c27b12f8ab4e769b8c76b24..5d51a5b19c85d0966ccfa0f7b55a540a74db86ac 100644 (file)
@@ -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);