mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:dsdb: Check return value of ldb_msg_add_empty() (CID 1449667)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c15a9af8e5
commit
b7b4c7ca8c
@ -333,8 +333,11 @@ static int samba_dsdb_init(struct ldb_module *module)
|
||||
}
|
||||
features_msg->dn = samba_dsdb_dn;
|
||||
|
||||
ldb_msg_add_empty(features_msg, SAMBA_COMPATIBLE_FEATURES_ATTR,
|
||||
ret = ldb_msg_add_empty(features_msg, SAMBA_COMPATIBLE_FEATURES_ATTR,
|
||||
LDB_FLAG_MOD_DELETE, &features_el);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (samba_options_supported == 1) {
|
||||
for (i = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user