summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cli-algo.c2
-rw-r--r--svr-algo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cli-algo.c b/cli-algo.c
index ec3a1ff..09da41a 100644
--- a/cli-algo.c
+++ b/cli-algo.c
@@ -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;
}
}
diff --git a/svr-algo.c b/svr-algo.c
index c0b7823..f8f9055 100644
--- a/svr-algo.c
+++ b/svr-algo.c
@@ -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;
}
}