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:
Matt Johnston 2011-04-07 11:18:35 +00:00
parent 3fc6569d46
commit 8028e07815
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}