diff options
author | Matt Caswell <matt@openssl.org> | 2015-03-06 14:37:17 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-23 15:23:11 +0000 |
commit | 69f682374868ba2b19a8aeada496bf03dbb037cf (patch) | |
tree | 1c7717928dc7eecd832f2c864ff19c63af708ffc /ssl/t1_enc.c | |
parent | 4bcdb4a6019e57b3de077b17940e18befe745531 (diff) |
Fix missing return value checks
Ensure that all functions have their return values checked where
appropriate. This covers all functions defined and called from within
libssl.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 26f8415dcb..df97f19386 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -1095,7 +1095,8 @@ int tls1_generate_master_secret(SSL *s, unsigned char *out, unsigned char *p, * exchange and before certificate verify) */ s->s3->flags |= TLS1_FLAGS_KEEP_HANDSHAKE; - ssl3_digest_cached_records(s); + if(!ssl3_digest_cached_records(s)) + return -1; } hashlen = ssl_handshake_hash(s, hash, sizeof(hash)); #ifdef SSL_DEBUG |