=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshd.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- src/usr.bin/ssh/sshd.c 1999/10/17 23:11:24 1.38 +++ src/usr.bin/ssh/sshd.c 1999/10/18 01:54:18 1.39 @@ -18,7 +18,7 @@ */ #include "includes.h" -RCSID("$Id: sshd.c,v 1.38 1999/10/17 23:11:24 dugsong Exp $"); +RCSID("$Id: sshd.c,v 1.39 1999/10/18 01:54:18 provos Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -853,6 +853,7 @@ /* Extract session key from the decrypted integer. The key is in the least significant 256 bits of the integer; the first byte of the key is in the highest bits. */ + BN_mask_bits(session_key_int, sizeof(session_key) * 8); assert(BN_num_bytes(session_key_int) == sizeof(session_key)); BN_bn2bin(session_key_int, session_key);