diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-11 15:23:15 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-11 15:23:15 +0000 |
commit | 12ba5285d2e4c24087903dbfc01923ef9f31fc6f (patch) | |
tree | 4c537273572ddfc7b9c8d68fa1bcc4f7741e9ce9 /usr.bin | |
parent | d008d37303b86b5903650611c01e0c534529d791 (diff) |
session_key_int may be zero
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index b9b91c0f307..55c312a1a93 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -18,7 +18,7 @@ agent connections. */ #include "includes.h" -RCSID("$Id: sshd.c,v 1.48 1999/11/11 10:05:34 markus Exp $"); +RCSID("$Id: sshd.c,v 1.49 1999/11/11 15:23:14 markus Exp $"); #include "xmalloc.h" #include "rsa.h" @@ -863,7 +863,7 @@ void do_connection(int privileged_port) key is in the highest bits. */ BN_mask_bits(session_key_int, sizeof(session_key) * 8); len = BN_num_bytes(session_key_int); - if (len <= 0 || len > sizeof(session_key)) + if (len < 0 || len > sizeof(session_key)) fatal("do_connection: bad len: session_key_int %d > sizeof(session_key) %d", len, sizeof(session_key)); memset(session_key, 0, sizeof(session_key)); |