svn commit: samba r13803 - in branches/SAMBA_4_0/source:
dsdb/samdb/ldb_modules lib/ldb/common
tridge at samba.org
tridge at samba.org
Fri Mar 3 02:29:49 GMT 2006
Author: tridge
Date: 2006-03-03 02:29:48 +0000 (Fri, 03 Mar 2006)
New Revision: 13803
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13803
Log:
fixed two errors found with 'make valgrindtest'
Modified:
branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/extended_dn.c
branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c
Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/extended_dn.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/extended_dn.c 2006-03-02 23:32:44 UTC (rev 13802)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/extended_dn.c 2006-03-03 02:29:48 UTC (rev 13803)
@@ -157,7 +157,7 @@
val = ldb_msg_find_ldb_val(msg, "distinguishedName");
if (val) {
ldb_msg_remove_attr(msg, "distinguishedName");
- if (ldb_msg_add_string(msg, "distinguishedName", new_dn))
+ if (ldb_msg_add_steal_string(msg, "distinguishedName", new_dn))
return False;
}
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c 2006-03-02 23:32:44 UTC (rev 13802)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c 2006-03-03 02:29:48 UTC (rev 13803)
@@ -263,7 +263,7 @@
val.data = (uint8_t *)str;
val.length = strlen(str);
- return ldb_msg_add_value(msg, attr_name, &val);
+ return ldb_msg_add_steal_value(msg, attr_name, &val);
}
/*
More information about the samba-cvs
mailing list