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/d1_srvr.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/d1_srvr.c')
-rw-r--r-- | ssl/d1_srvr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index bcf63e016b..24361ae5df 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -184,8 +184,10 @@ int dtls1_accept(SSL *s) /* init things to blank */ s->in_handshake++; - if (!SSL_in_init(s) || SSL_in_before(s)) - SSL_clear(s); + if (!SSL_in_init(s) || SSL_in_before(s)) { + if(!SSL_clear(s)) + return -1; + } s->d1->listen = listen; #ifndef OPENSSL_NO_SCTP |