summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-06-14 16:31:32 +0200
committerJeremy Allison <jra@samba.org>2016-06-18 23:32:26 +0200
commit5ddfe5ecd3e941f645619ec200d6e131763e4bb3 (patch)
tree9945975e0a5c7ed983f688330f0510abfcd577a1 /source4/kdc
parentc5a02e81ea423f02b402ae3d16c61054d8606158 (diff)
downloadsamba-5ddfe5ecd3e941f645619ec200d6e131763e4bb3.tar.gz
s4-kdc: Use smb_krb5_mk_error() in kpasswd implementation
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/kpasswd-heimdal.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source4/kdc/kpasswd-heimdal.c b/source4/kdc/kpasswd-heimdal.c
index 20e718b43d6..453e41a41bd 100644
--- a/source4/kdc/kpasswd-heimdal.c
+++ b/source4/kdc/kpasswd-heimdal.c
@@ -76,14 +76,17 @@ static bool kpasswdd_make_unauth_error_reply(struct kdc_server *kdc,
}
k5_error_bytes.data = error_bytes.data;
k5_error_bytes.length = error_bytes.length;
- kret = krb5_mk_error(kdc->smb_krb5_context->krb5_context,
- result_code, NULL, &k5_error_bytes,
- NULL, NULL, NULL, NULL, &k5_error_blob);
+ kret = smb_krb5_mk_error(kdc->smb_krb5_context->krb5_context,
+ result_code,
+ NULL,
+ &k5_error_bytes,
+ &k5_error_blob);
if (kret) {
return false;
}
*error_blob = data_blob_talloc(mem_ctx, k5_error_blob.data, k5_error_blob.length);
- krb5_data_free(&k5_error_blob);
+ kerberos_free_data_contents(kdc->smb_krb5_context->krb5_context,
+ &k5_error_blob);
if (!error_blob->data) {
return false;
}