summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-07-06 05:55:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:48 -0500
commit12dc0ae78cfc179d3e087f789ce5fb499cf5a29a (patch)
treeb0452857bafb2d62d39f0dc4b3bd3a6b9e04b54b /source4
parent3ed1e8ff3c351296adfa78a99c19cc7b0fd5d7e7 (diff)
downloadsamba-12dc0ae78cfc179d3e087f789ce5fb499cf5a29a.tar.gz
samba-12dc0ae78cfc179d3e087f789ce5fb499cf5a29a.tar.bz2
samba-12dc0ae78cfc179d3e087f789ce5fb499cf5a29a.zip
r16830: Fix IBM checker and GCC warnings.
Andrew Bartlett (This used to be commit 5ef924bc739a51a8f83d7b4566f9ba85296c585a)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_samdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libnet/libnet_samdump.c b/source4/libnet/libnet_samdump.c
index 63c356d52d..668246729e 100644
--- a/source4/libnet/libnet_samdump.c
+++ b/source4/libnet/libnet_samdump.c
@@ -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:
{