mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libcli/auth: fix "no talloc stackframe around" message from the samba4.blackbox.kinit test
create_kerberos_key_from_string_direct() used talloc_tos() directly. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
0791da4fdd
commit
75f289d30e
@ -120,13 +120,15 @@ int create_kerberos_key_from_string_direct(krb5_context context,
|
||||
krb5_error_code ret;
|
||||
char *utf8_name;
|
||||
size_t converted_size;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
if (!push_utf8_talloc(talloc_tos(), &utf8_name, name, &converted_size)) {
|
||||
if (!push_utf8_talloc(frame, &utf8_name, name, &converted_size)) {
|
||||
talloc_free(frame);
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
ret = krb5_parse_name(context, utf8_name, principal);
|
||||
TALLOC_FREE(utf8_name);
|
||||
TALLOC_FREE(frame);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user