1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:dns_server: Check return value of ldb_transaction_commit() (CID 1034631)

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-06 11:16:37 +13:00 committed by Andrew Bartlett
parent d3b1aa6359
commit 1ad4dd9288

View File

@ -753,7 +753,10 @@ static WERROR handle_updates(struct dns_server *dns,
failed:
if (W_ERROR_IS_OK(werror)) {
ldb_transaction_commit(dns->samdb);
ret = ldb_transaction_commit(dns->samdb);
if (ret != LDB_SUCCESS) {
werror = DNS_ERR(SERVER_FAILURE);
}
} else {
ldb_transaction_cancel(dns->samdb);
}