summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-08-11 15:10:33 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-08-30 11:34:15 +0200
commit739a7adaef29d24611ee2d709e01e1cb7ffb31be (patch)
treeb0fd9621aad064c4914542455d190b710be2e02b
parent8268501972994ce8240a27b68e85f9208b617094 (diff)
downloadsamba-739a7adaef29d24611ee2d709e01e1cb7ffb31be.tar.gz
gensec_krb5: Use kerberos_free_data_contents() to free krb5 data
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/auth/gensec/gensec_krb5.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/auth/gensec/gensec_krb5.c b/source4/auth/gensec/gensec_krb5.c
index a5d50b576bd..b7189103c50 100644
--- a/source4/auth/gensec/gensec_krb5.c
+++ b/source4/auth/gensec/gensec_krb5.c
@@ -641,7 +641,8 @@ static NTSTATUS gensec_krb5_update(struct gensec_security *gensec_security,
} else {
*out = data_blob_talloc(out_mem_ctx, outbuf.data, outbuf.length);
}
- krb5_data_free(&outbuf);
+ kerberos_free_data_contents(gensec_krb5_state->smb_krb5_context->krb5_context,
+ &outbuf);
return NT_STATUS_OK;
}
@@ -820,7 +821,7 @@ static NTSTATUS gensec_krb5_wrap(struct gensec_security *gensec_security,
}
*out = data_blob_talloc(mem_ctx, output.data, output.length);
- krb5_data_free(&output);
+ kerberos_free_data_contents(context, &output);
} else {
return NT_STATUS_ACCESS_DENIED;
}
@@ -851,7 +852,7 @@ static NTSTATUS gensec_krb5_unwrap(struct gensec_security *gensec_security,
}
*out = data_blob_talloc(mem_ctx, output.data, output.length);
- krb5_data_free(&output);
+ kerberos_free_data_contents(context, &output);
} else {
return NT_STATUS_ACCESS_DENIED;
}