mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:auth: Allocate strings on shorter‐lived memory context
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
398a555fc2
commit
2f25c23b7b
@ -602,7 +602,7 @@ krb5_error_code smb_krb5_remove_obsolete_keytab_entries(TALLOC_CTX *mem_ctx,
|
||||
default:
|
||||
*error_string = talloc_asprintf(mem_ctx,
|
||||
"failed to open keytab for read of old entries: %s\n",
|
||||
smb_get_krb5_error_message(context, code, mem_ctx));
|
||||
smb_get_krb5_error_message(context, code, tmp_ctx));
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -711,7 +711,7 @@ krb5_error_code smb_krb5_remove_obsolete_keytab_entries(TALLOC_CTX *mem_ctx,
|
||||
"failed in deleting old entries for principal: %s\n",
|
||||
smb_get_krb5_error_message(context,
|
||||
code,
|
||||
mem_ctx));
|
||||
tmp_ctx));
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -763,7 +763,7 @@ krb5_error_code smb_krb5_is_exact_entry_in_keytab(TALLOC_CTX *mem_ctx,
|
||||
default:
|
||||
*error_string = talloc_asprintf(mem_ctx,
|
||||
"failed to open keytab for read of existing entries: %s\n",
|
||||
smb_get_krb5_error_message(context, code, mem_ctx));
|
||||
smb_get_krb5_error_message(context, code, tmp_ctx));
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -814,7 +814,7 @@ krb5_error_code smb_krb5_is_exact_entry_in_keytab(TALLOC_CTX *mem_ctx,
|
||||
"failed in checking old entries for principal: %s\n",
|
||||
smb_get_krb5_error_message(context,
|
||||
code,
|
||||
mem_ctx));
|
||||
tmp_ctx));
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user