Mercurial > dropbear
diff svr-algo.c @ 26:0969767bca0d
snapshot of stuff
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 26 Jul 2004 02:44:20 +0000 |
parents | fe6bca95afa7 |
children | e3adf4cf5465 |
line wrap: on
line diff
--- a/svr-algo.c Tue Jul 20 12:06:37 2004 +0000 +++ b/svr-algo.c Mon Jul 26 02:44:20 2004 +0000 @@ -16,6 +16,8 @@ unsigned int count, i, j; algo_type * ret = NULL; + *goodguess = 0; + /* get the comma-separated list from the buffer ie "algo1,algo2,algo3" */ algolist = buf_getstring(buf, &len); /* Debug this */ @@ -57,8 +59,6 @@ /* set if it was a good guess */ if (i == 0 && j == 0) { *goodguess = 1; - } else { - *goodguess = 0; } /* set the algo to return */ ret = &localalgos[j];