mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/krb5_wrap: Make use of smb_krb5_make_data()
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
4896930559
commit
0bd7863ec0
@ -261,13 +261,10 @@ krb5_error_code smb_krb5_mk_error(krb5_context context,
|
||||
|
||||
errpkt.text.length = 0;
|
||||
if (e_text != NULL) {
|
||||
errpkt.text.length = strlen(e_text);
|
||||
errpkt.text.data = discard_const_p(char, e_text);
|
||||
errpkt.text = smb_krb5_make_data(discard_const_p(char, e_text), strlen(e_text));
|
||||
}
|
||||
|
||||
errpkt.e_data.magic = KV5M_DATA;
|
||||
errpkt.e_data.length = 0;
|
||||
errpkt.e_data.data = NULL;
|
||||
errpkt.e_data = smb_krb5_make_data(NULL, 0);
|
||||
if (e_data != NULL) {
|
||||
errpkt.e_data = *e_data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user