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/ssl_txt.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/ssl_txt.c')
-rw-r--r-- | ssl/ssl_txt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/ssl_txt.c b/ssl/ssl_txt.c index e5774d2c14..ccdf8ec257 100644 --- a/ssl/ssl_txt.c +++ b/ssl/ssl_txt.c @@ -214,7 +214,8 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) if (x->compress_meth != 0) { SSL_COMP *comp = NULL; - ssl_cipher_get_evp(x, NULL, NULL, NULL, NULL, &comp, 0); + if(!ssl_cipher_get_evp(x, NULL, NULL, NULL, NULL, &comp, 0)) + goto err; if (comp == NULL) { if (BIO_printf(bp, "\n Compression: %d", x->compress_meth) <= 0) |