mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
r14427: don't reference short_princ after it is freed
(This used to be commit 8ca4681861e24ddf7c4abcc97a4cf0e001d13e24)
This commit is contained in:
parent
a088c2297d
commit
4ce5f82979
@ -478,7 +478,7 @@ static krb5_error_code LDB_lookup_principal(krb5_context context, struct ldb_con
|
||||
|
||||
short_princ_talloc = talloc_strdup(mem_ctx, short_princ);
|
||||
free(short_princ);
|
||||
if (!short_princ || !short_princ_talloc) {
|
||||
if (!short_princ_talloc) {
|
||||
krb5_set_error_string(context, "LDB_lookup_principal: talloc_strdup() failed!");
|
||||
return ENOMEM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user