mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa_pwd: Remove unnecessary conditional
It is already confirmed that item_data is not NULL so there is no need to check it again. Discovered by coverity. Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Robbie Harwood <rharwood@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
a129e6f042
commit
99ea326b1c
@ -312,9 +312,6 @@ static int ipapwd_cmp_password(char *password, char *historyString)
|
||||
}
|
||||
|
||||
size_t item_len = EVP_DecodeBlock(item_data, (unsigned char *) b64part, b64_len);
|
||||
if (!item_data) {
|
||||
return -1;
|
||||
}
|
||||
if (item_len <= SHA_SALT_LENGTH) {
|
||||
ret = -1;
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user