mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Unchecked return values in SLAPI plugins
Return values weren't checked in several cases which could have lead to unhandled errors. https://fedorahosted.org/freeipa/ticket/722
This commit is contained in:
@@ -748,8 +748,8 @@ static int ipamodrdn_post_op(Slapi_PBlock *pb)
|
||||
Slapi_Value *val;
|
||||
const char *strval;
|
||||
|
||||
slapi_attr_first_value(sattr, &val);
|
||||
if (!val) {
|
||||
ret = slapi_attr_first_value(sattr, &val);
|
||||
if (ret == -1 || !val) {
|
||||
LOG_FATAL("Source attr %s is empty\n", cfgentry->sattr);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user