mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r10303: check no attribute is given empty
(This used to be commit f0ad9495e4
)
This commit is contained in:
parent
eebe0c269e
commit
bb8f5c93ee
@ -658,6 +658,11 @@ struct ldb_ldif *ldb_ldif_read(struct ldb_context *ldb,
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user