mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-pwd-extop: added an informational comment about intentional fallthrough
This patch is related to this defect reported by covscan in FreeIPA code: """ Error: MISSING_BREAK (CWE-484): /daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:631: unterminated_case: The case for value "2" is not terminated by a 'break' statement. /daemons/ipa-slapi-plugins/ipa-pwd-extop/prepost.c:638: fallthrough: The above case falls through to this one. """ Added a comment informing about intentional falltrough in this place, so that future generations reading the code don't get confused. The patch is the part of a series related to https://fedorahosted.org/freeipa/ticket/4795 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
8242660cba
commit
b5d29c7774
@ -635,6 +635,8 @@ static int ipapwd_pre_mod(Slapi_PBlock *pb)
|
|||||||
is_smb = 0;
|
is_smb = 0;
|
||||||
is_ipant = 0;
|
is_ipant = 0;
|
||||||
|
|
||||||
|
/* After examining the output of covscan, we think that this
|
||||||
|
* fallthrough is intentional.*/
|
||||||
case LDAP_MOD_ADD:
|
case LDAP_MOD_ADD:
|
||||||
if (!lmod->mod_bvalues ||
|
if (!lmod->mod_bvalues ||
|
||||||
!lmod->mod_bvalues[0]) {
|
!lmod->mod_bvalues[0]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user