1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

dsdb: Fix CID 1034802 Dereference null return value

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2015-06-23 14:46:12 +02:00
committed by Jeremy Allison
parent 22d4d91649
commit d09d428c5e

View File

@ -1178,6 +1178,10 @@ static int rootdse_enable_recycle_bin(struct ldb_module *module,struct ldb_conte
}
msg = ldb_msg_new(tmp_ctx);
if (msg == NULL) {
talloc_free(tmp_ctx);
return ldb_module_oom(module);
}
msg->dn = ntds_settings_dn;
ldb_msg_add_linearized_dn(msg, "msDS-EnabledFeature", op_feature_msg->dn);