Skip to content
Snippets Groups Projects
Commit 8028e078 authored by Matt Johnston's avatar Matt Johnston
Browse files

Change comparison to be more paranoid (and perhaps avoid Klocwork false

positive). Does not change behaviour.

--HG--
extra : convert_revision : 11d5ca4bf2f4197ed2d14b6772a351bcb59f775e
parent 3fc6569d
Branches
Tags
No related merge requests found
......@@ -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;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment