1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

dsdb:mod:operational: initialise a pointer (CID 1499411)

A Coverity false positive (we check for error) but it is worth
doing per README.Coding

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <josutton@catalyst.net.nz>
This commit is contained in:
Douglas Bagnall 2024-07-31 13:27:40 +12:00 committed by Douglas Bagnall
parent e2174dde74
commit 24b0dad5b5

View File

@ -557,7 +557,7 @@ static int construct_msds_isrodc_with_server_dn(struct ldb_module *module,
struct ldb_dn *dn, struct ldb_dn *dn,
struct ldb_request *parent) struct ldb_request *parent)
{ {
struct ldb_dn *server_dn; struct ldb_dn *server_dn = NULL;
const char *attr_obj_cat[] = { "objectCategory", NULL }; const char *attr_obj_cat[] = { "objectCategory", NULL };
struct ldb_result *res; struct ldb_result *res;
struct ldb_message_element *object_category; struct ldb_message_element *object_category;
@ -594,7 +594,7 @@ static int construct_msds_isrodc_with_computer_dn(struct ldb_module *module,
struct ldb_request *parent) struct ldb_request *parent)
{ {
int ret; int ret;
struct ldb_dn *server_dn; struct ldb_dn *server_dn = NULL;
ret = dsdb_module_reference_dn(module, msg, msg->dn, "serverReferenceBL", ret = dsdb_module_reference_dn(module, msg, msg->dn, "serverReferenceBL",
&server_dn, parent); &server_dn, parent);