From: Simon Tatham Date: Wed, 17 Jan 2001 16:57:15 +0000 (+0000) Subject: Trivial fix for when the two directions select different encryption X-Git-Tag: r8855-g4f798d~2826 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;ds=sidebyside;h=93d10d7a57a8cb65655e2d4b504f26d5d141e910;p=PuTTY_svn.git Trivial fix for when the two directions select different encryption algorithms git-svn-id: http://svn.tartarus.org/sgt/putty@869 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 26b26c32..a8646146 100644 --- a/ssh.c +++ b/ssh.c @@ -2279,7 +2279,7 @@ static int do_ssh2_transport(unsigned char *in, int inlen, int ispkt) * Set IVs after keys. */ ssh2_mkkey(K, exchange_hash, 'C', keyspace); cscipher->setcskey(keyspace); - ssh2_mkkey(K, exchange_hash, 'D', keyspace); cscipher->setsckey(keyspace); + ssh2_mkkey(K, exchange_hash, 'D', keyspace); sccipher->setsckey(keyspace); ssh2_mkkey(K, exchange_hash, 'A', keyspace); cscipher->setcsiv(keyspace); ssh2_mkkey(K, exchange_hash, 'B', keyspace); sccipher->setsciv(keyspace); ssh2_mkkey(K, exchange_hash, 'E', keyspace); csmac->setcskey(keyspace);