From 720a67fb615f3563c46279fc572a5344a370d33f Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sun, 4 Aug 2002 03:05:19 +0000 Subject: [PATCH] exit sec_parse_crypt_info if crypt_level is 0 from up19-7-3 git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@88 423420c4-83ab-492f-b58f-81f9feb106b5 --- secure.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secure.c b/secure.c index eb28d50..6747fca 100644 --- a/secure.c +++ b/secure.c @@ -474,6 +474,8 @@ sec_parse_crypt_info(STREAM s, uint32 * rc4_key_size, in_uint32_le(s, *rc4_key_size); /* 1 = 40-bit, 2 = 128-bit */ in_uint32_le(s, crypt_level); /* 1 = low, 2 = medium, 3 = high */ + if (crypt_level == 0) /* no encryptation */ + return False; in_uint32_le(s, random_len); in_uint32_le(s, rsa_info_len);