summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-06-12 21:09:40 +0200
committerAndrew Bartlett <abartlet@samba.org>2018-06-13 10:30:15 +0200
commit7f754843f51398d4c55ab7cd64b4b53754be3bb5 (patch)
tree1dbf7c32b2ba2b5c0d4978252db8c3f95cc4defb /source4
parent83cd68c8ae7e4febbfbabd11172f7a2e2eef4368 (diff)
downloadsamba-7f754843f51398d4c55ab7cd64b4b53754be3bb5.tar.gz
dsdb: Fix CID 1436920 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/audit_log.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/audit_log.c b/source4/dsdb/samdb/ldb_modules/audit_log.c
index fd2387699d3..23b4651b32d 100644
--- a/source4/dsdb/samdb/ldb_modules/audit_log.c
+++ b/source4/dsdb/samdb/ldb_modules/audit_log.c
@@ -1172,6 +1172,7 @@ static int add_transaction_id(
talloc_get_type(ldb_module_get_private(module),
struct audit_context);
struct dsdb_control_transaction_identifier *transaction_id;
+ int ret;
transaction_id = talloc_zero(
req,
@@ -1181,11 +1182,11 @@ static int add_transaction_id(
return ldb_oom(ldb);
}
transaction_id->transaction_guid = ac->transaction_guid;
- ldb_request_add_control(req,
- DSDB_CONTROL_TRANSACTION_IDENTIFIER_OID,
- false,
- transaction_id);
- return LDB_SUCCESS;
+ ret = ldb_request_add_control(req,
+ DSDB_CONTROL_TRANSACTION_IDENTIFIER_OID,
+ false,
+ transaction_id);
+ return ret;
}