svn commit: samba r16830 - in branches/SAMBA_4_0/source/libnet: .

abartlet at samba.org abartlet at samba.org
Thu Jul 6 05:55:32 GMT 2006


Author: abartlet
Date: 2006-07-06 05:55:26 +0000 (Thu, 06 Jul 2006)
New Revision: 16830

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16830

Log:
Fix IBM checker and GCC warnings.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libnet/libnet_samdump.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_samdump.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_samdump.c	2006-07-06 05:51:39 UTC (rev 16829)
+++ branches/SAMBA_4_0/source/libnet/libnet_samdump.c	2006-07-06 05:55:26 UTC (rev 16830)
@@ -78,7 +78,7 @@
 	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 @@
 
 	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 @@
 		if (database == SAM_DATABASE_DOMAIN) {
 			nt_status = vampire_samdump_handle_user(mem_ctx, 
 								delta);
-			break;
 		}
+		break;
 	}
 	case NETR_DELTA_SECRET:
 	{



More information about the samba-cvs mailing list