mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 07:15:33 +02:00
merge with mysql-5.5.30 minus few incorrect or not applicable changesets
This commit is contained in:
commit
8161c6772d
178 changed files with 3564 additions and 2042 deletions
|
|
@ -767,8 +767,14 @@ int DoProcessReply(SSL& ssl)
|
|||
|
||||
while (buffer.get_current() < hdr.length_ + RECORD_HEADER + offset) {
|
||||
// each message in record, can be more than 1 if not encrypted
|
||||
if (ssl.getSecurity().get_parms().pending_ == false) // cipher on
|
||||
if (ssl.getSecurity().get_parms().pending_ == false) { // cipher on
|
||||
// sanity check for malicious/corrupted/illegal input
|
||||
if (buffer.get_remaining() < hdr.length_) {
|
||||
ssl.SetError(bad_input);
|
||||
return 0;
|
||||
}
|
||||
decrypt_message(ssl, buffer, hdr.length_);
|
||||
}
|
||||
|
||||
mySTL::auto_ptr<Message> msg(mf.CreateObject(hdr.type_));
|
||||
if (!msg.get()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue