mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-pwd: Unchecked return value ipapwd_chpwop()
Fixes https://fedorahosted.org/freeipa/ticket/3427
This commit is contained in:
@@ -247,7 +247,11 @@ parse_req_done:
|
||||
slapi_sdn_free(&sdn);
|
||||
if (be) {
|
||||
chpwop_pb = slapi_pblock_new();
|
||||
slapi_pblock_set(chpwop_pb, SLAPI_BACKEND, be);
|
||||
if (slapi_pblock_set(chpwop_pb, SLAPI_BACKEND, be)) {
|
||||
LOG_FATAL("slapi_pblock_set failed!\n");
|
||||
rc = LDAP_OPERATIONS_ERROR;
|
||||
goto free_and_return;
|
||||
}
|
||||
rc = slapi_back_transaction_begin(chpwop_pb);
|
||||
if (rc) {
|
||||
LOG_FATAL("failed to start transaction\n");
|
||||
|
||||
Reference in New Issue
Block a user