mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r16830: Fix IBM checker and GCC warnings.
Andrew Bartlett
This commit is contained in:
parent
3e58350ec2
commit
5ef924bc73
@ -78,7 +78,7 @@ static NTSTATUS vampire_samdump_handle_secret(TALLOC_CTX *mem_ctx,
|
||||
const char *name = delta->delta_id_union.name;
|
||||
struct samdump_secret *new = talloc(samdump_state, struct samdump_secret);
|
||||
|
||||
new->name = talloc_steal(new, name);
|
||||
new->name = talloc_strdup(new, name);
|
||||
new->secret = data_blob_talloc(new, secret->current_cipher.cipher_data, secret->current_cipher.maxlen);
|
||||
new->mtime = secret->current_cipher_set_time;
|
||||
|
||||
@ -96,7 +96,7 @@ static NTSTATUS vampire_samdump_handle_trusted_domain(TALLOC_CTX *mem_ctx,
|
||||
|
||||
struct samdump_trusted_domain *new = talloc(samdump_state, struct samdump_trusted_domain);
|
||||
|
||||
new->name = talloc_steal(new, trusted_domain->domain_name.string);
|
||||
new->name = talloc_strdup(new, trusted_domain->domain_name.string);
|
||||
new->sid = talloc_steal(new, dom_sid);
|
||||
|
||||
DLIST_ADD(samdump_state->trusted_domains, new);
|
||||
@ -121,8 +121,8 @@ static NTSTATUS libnet_samdump_fn(TALLOC_CTX *mem_ctx,
|
||||
if (database == SAM_DATABASE_DOMAIN) {
|
||||
nt_status = vampire_samdump_handle_user(mem_ctx,
|
||||
delta);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case NETR_DELTA_SECRET:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user