diff options
author | Georgi Kodinov <kgeorge@mysql.com> | 2008-12-02 13:15:28 +0200 |
---|---|---|
committer | Georgi Kodinov <kgeorge@mysql.com> | 2008-12-02 13:15:28 +0200 |
commit | bd53e304d7a75854dea2b732468fe4b18ef3aaf8 (patch) | |
tree | cbbbe8643534ddc5a337bce01211b7e140e80eef /extra | |
parent | 47cff6998ad2655d1c17ce27263c6a4ed713b854 (diff) | |
download | mariadb-git-bd53e304d7a75854dea2b732468fe4b18ef3aaf8.tar.gz |
Addendum to the fix for bug #39178: Server crash in YaSSL
with non-RSA-requesting client if server uses RSA key
matchSuite() may not find a match.
It will return error in this case.
Added a error checking code that will prevent using uninitialized
memory in the code based on the assumption
that matchSuite() has found a match.
extra/yassl/src/yassl_imp.cpp:
Bug #39178: Correct error checking added
Diffstat (limited to 'extra')
-rw-r--r-- | extra/yassl/src/yassl_imp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/yassl/src/yassl_imp.cpp b/extra/yassl/src/yassl_imp.cpp index 4430ef0213c..20dfe50f132 100644 --- a/extra/yassl/src/yassl_imp.cpp +++ b/extra/yassl/src/yassl_imp.cpp @@ -1560,6 +1560,7 @@ void ClientHello::Process(input_buffer&, SSL& ssl) return; } ssl.matchSuite(cipher_suites_, suite_len_); + if (ssl.GetError()) return; ssl.set_pending(ssl.getSecurity().get_parms().suite_[1]); if (compression_methods_ == zlib) |