mirror of
https://github.com/samba-team/samba.git
synced 2025-04-24 22:50:23 +03:00
lib/krb5_wrap: Fix placement of TALLOC_FREE(frame)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15727 Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Apr 23 12:14:17 UTC 2025 on atb-devel-224
This commit is contained in:
parent
daea4ad9f4
commit
b5bd36dfd7
@ -869,16 +869,17 @@ krb5_error_code smb_krb5_parse_name_flags(krb5_context context,
|
||||
TALLOC_FREE(frame);
|
||||
return ENOMEM;
|
||||
}
|
||||
TALLOC_FREE(frame);
|
||||
|
||||
ret = krb5_parse_name_flags(context, utf8_name, flags, principal);
|
||||
if (ret != KRB5_PARSE_MALFORMED) {
|
||||
TALLOC_FREE(frame);
|
||||
return ret;
|
||||
}
|
||||
|
||||
flags |= KRB5_PRINCIPAL_PARSE_ENTERPRISE;
|
||||
ret = krb5_parse_name_flags(context, utf8_name, flags, principal);
|
||||
|
||||
TALLOC_FREE(frame);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user