|
|
@@ -384,7 +384,7 @@ static void ssh2_msg_something_unimplemented(Ssh ssh, struct Packet *pktin);
|
|
|
* ensure that the server never has any need to throttle its end
|
|
|
* of the connection), so we set this high as well.
|
|
|
*
|
|
|
- * - OUR_V2_WINSIZE is the maximum window size we present on SSH-2
|
|
|
+ * - OUR_V2_WINSIZE is the default window size we present on SSH-2
|
|
|
* channels.
|
|
|
*
|
|
|
* - OUR_V2_BIGWIN is the window size we advertise for the only
|
|
|
@@ -7334,7 +7334,7 @@ static void do_ssh2_transport(Ssh ssh, const void *vin, int inlen,
|
|
|
* Make a note of any other host key formats that are available.
|
|
|
*/
|
|
|
{
|
|
|
- int i, j;
|
|
|
+ int i, j, nkeys = 0;
|
|
|
char *list = NULL;
|
|
|
for (i = 0; i < lenof(hostkey_algs); i++) {
|
|
|
if (hostkey_algs[i].alg == ssh->hostkey)
|
|
|
@@ -7353,13 +7353,15 @@ static void do_ssh2_transport(Ssh ssh, const void *vin, int inlen,
|
|
|
newlist = dupprintf("%s", hostkey_algs[i].alg->name);
|
|
|
sfree(list);
|
|
|
list = newlist;
|
|
|
+ nkeys++;
|
|
|
}
|
|
|
}
|
|
|
if (list) {
|
|
|
logeventf(ssh,
|
|
|
"Server also has %s host key%s, but we "
|
|
|
"don't know %s", list,
|
|
|
- j > 1 ? "s" : "", j > 1 ? "any of them" : "it");
|
|
|
+ nkeys > 1 ? "s" : "",
|
|
|
+ nkeys > 1 ? "any of them" : "it");
|
|
|
sfree(list);
|
|
|
}
|
|
|
}
|