mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:libnet: sdb_free_entry() already clears everything
There's no need to know about '.free_entry'. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
829bb366f3
commit
244e188083
@ -34,9 +34,7 @@ static NTSTATUS sdb_kt_copy(TALLOC_CTX *mem_ctx,
|
||||
const char *principal,
|
||||
const char **error_string)
|
||||
{
|
||||
struct sdb_entry_ex sentry = {
|
||||
.free_entry = NULL,
|
||||
};
|
||||
struct sdb_entry_ex sentry = {};
|
||||
krb5_keytab keytab;
|
||||
krb5_error_code code = 0;
|
||||
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
|
||||
@ -93,9 +91,6 @@ static NTSTATUS sdb_kt_copy(TALLOC_CTX *mem_ctx,
|
||||
if (sentry.entry.keys.len == 0) {
|
||||
SAFE_FREE(entry_principal);
|
||||
sdb_free_entry(&sentry);
|
||||
sentry = (struct sdb_entry_ex) {
|
||||
.free_entry = NULL,
|
||||
};
|
||||
|
||||
continue;
|
||||
}
|
||||
@ -136,9 +131,6 @@ static NTSTATUS sdb_kt_copy(TALLOC_CTX *mem_ctx,
|
||||
|
||||
SAFE_FREE(entry_principal);
|
||||
sdb_free_entry(&sentry);
|
||||
sentry = (struct sdb_entry_ex) {
|
||||
.free_entry = NULL,
|
||||
};
|
||||
}
|
||||
|
||||
if (code != 0 && code != SDB_ERR_NOENTRY) {
|
||||
|
Loading…
Reference in New Issue
Block a user