mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 15:40:48 +02:00
verify i >= 0 before continuing loop. clears coverity false positive
This commit is contained in:
+1
-1
@@ -27156,7 +27156,7 @@ static void SetRdnItems(ASNItem* namesASN, ASNSetData* dataASN, const byte* oid,
|
||||
static int FindMultiAttrib(CertName* name, int id, int* idx)
|
||||
{
|
||||
int i;
|
||||
for (i = *idx + 1; i < CTC_MAX_ATTRIB; i++) {
|
||||
for (i = *idx + 1; i >= 0 && i < CTC_MAX_ATTRIB; i++) {
|
||||
if (name->name[i].sz > 0 && name->name[i].id == id) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user