mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Coverity: fix issue in ipa_extdom_extop.c
Coverity found the following issue: Error: BAD_COMPARE (CWE-697): [#def1] freeipa-4.6.5/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c:121: null_misuse: Comparing pointer "threadnumber" against "NULL" using anything besides "==" or "!=" is likely to be incorrect. The comparison is using the pointer while it should use the pointed value. Fixes: https://pagure.io/freeipa/issue/7884 Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
@@ -118,7 +118,7 @@ static int ipa_get_threadnumber(Slapi_ComponentId *plugin_id, size_t *threadnumb
|
||||
*threadnumber = slapi_entry_attr_get_uint(search_entries[0],
|
||||
NSSLAPD_THREADNUMBER);
|
||||
|
||||
if (threadnumber <= 0) {
|
||||
if (*threadnumber <= 0) {
|
||||
LOG_FATAL("No thread number found.\n");
|
||||
ret = LDAP_OPERATIONS_ERROR;
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user