1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4-kdc/pac_glue: use krb5_copy_data_contents in samba_make_krb5_pac().

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Günther Deschner 2014-05-12 17:45:14 +02:00 committed by Stefan Metzmacher
parent c5eb9b388e
commit 51191bd9d8

View File

@ -87,16 +87,18 @@ krb5_error_code samba_make_krb5_pac(krb5_context context,
return 0;
}
ret = krb5_data_copy(&pac_data, pac_blob->data, pac_blob->length);
ret = krb5_copy_data_contents(&pac_data,
pac_blob->data,
pac_blob->length);
if (ret != 0) {
return ret;
}
ZERO_STRUCT(deleg_data);
if (deleg_blob) {
ret = krb5_data_copy(&deleg_data,
deleg_blob->data,
deleg_blob->length);
ret = krb5_copy_data_contents(&deleg_data,
deleg_blob->data,
deleg_blob->length);
if (ret != 0) {
kerberos_free_data_contents(context, &pac_data);
return ret;