svn commit: samba r10303 - in branches/SAMBA_4_0/source/lib/ldb/common: .

idra at samba.org idra at samba.org
Sun Sep 18 10:46:21 GMT 2005


Author: idra
Date: 2005-09-18 10:46:21 +0000 (Sun, 18 Sep 2005)
New Revision: 10303

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

Log:

check no attribute is given empty


Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_ldif.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_ldif.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_ldif.c	2005-09-18 10:45:28 UTC (rev 10302)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_ldif.c	2005-09-18 10:46:21 UTC (rev 10303)
@@ -658,6 +658,11 @@
 			if (ret != 0) {
 				goto failed;
 			}
+			if (value.length == 0) {
+				ldb_debug(ldb, LDB_DEBUG_ERROR,
+					  "Error: Attribute value cannot be empty for attribute '%s'\n", el->name);
+				goto failed;
+			}
 			if (value.data != el->values[el->num_values].data) {
 				talloc_steal(el->values, el->values[el->num_values].data);
 			}



More information about the samba-cvs mailing list