Handle the unlikely event that BIO_get_mem_data() returns -ve.

This commit is contained in:
Ben Laurie
2008-12-27 02:00:38 +00:00
parent 4ded7b44a8
commit 6ba71a7173
7 changed files with 62 additions and 40 deletions

View File

@@ -871,7 +871,8 @@ int ssl3_get_server_hello(SSL *s)
}
}
s->s3->tmp.new_cipher=c;
ssl3_digest_cached_records(s);
if (!ssl3_digest_cached_records(s))
goto f_err;
/* lets get the compression algorithm */
/* COMPRESSION */