mirror of
https://github.com/clearml/dropbear
synced 2025-04-02 12:06:15 +00:00
Change comparison to be more paranoid (and perhaps avoid Klocwork false
positive). Does not change behaviour. --HG-- extra : convert_revision : 11d5ca4bf2f4197ed2d14b6772a351bcb59f775e
This commit is contained in:
parent
3fc6569d46
commit
8028e07815
@ -67,7 +67,7 @@ algo_type * cli_buf_match_algo(buffer* buf, algo_type localalgos[],
|
||||
remotealgos[count] = &algolist[i+1];
|
||||
count++;
|
||||
}
|
||||
if (count == MAX_PROPOSED_ALGO) {
|
||||
if (count >= MAX_PROPOSED_ALGO) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ algo_type * svr_buf_match_algo(buffer* buf, algo_type localalgos[],
|
||||
remotealgos[count] = &algolist[i+1];
|
||||
count++;
|
||||
}
|
||||
if (count == MAX_PROPOSED_ALGO) {
|
||||
if (count >= MAX_PROPOSED_ALGO) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user