# HG changeset patch # User Matt Johnston # Date 1125645290 0 # Node ID b3cca2d9ee3c3a03b6f115cb0e8c7ee26394fbc1 # Parent 225e6822ef5356ef3150358f2ca457a922091637 Increase algorithm list buffer length diff -r 225e6822ef53 -r b3cca2d9ee3c common-algo.c --- a/common-algo.c Tue Aug 30 18:00:11 2005 +0000 +++ b/common-algo.c Fri Sep 02 07:14:50 2005 +0000 @@ -210,7 +210,7 @@ void buf_put_algolist(buffer * buf, algo_type localalgos[]) { unsigned int pos = 0, i, len; - char str[50]; /* enough for local algo storage */ + char str[MAX_ALGO_LIST_LEN]; for (i = 0; localalgos[i].name != NULL; i++) { if (localalgos[i].usable) { diff -r 225e6822ef53 -r b3cca2d9ee3c options.h --- a/options.h Tue Aug 30 18:00:11 2005 +0000 +++ b/options.h Fri Sep 02 07:14:50 2005 +0000 @@ -289,6 +289,9 @@ #define MAX_PROPOSED_ALGO 20 +#define MAX_ALGO_LIST_LEN 100 /* max length of our sent algorithm list + (cipher is longest) */ + /* size/count limits */ #define MAX_LISTEN_ADDR 10