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:
parent
d3b1aa6359
commit
1ad4dd9288
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user