aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2015-05-04 19:16:01 -0700
committerZachary Scott <e@zzak.io>2015-05-04 19:16:01 -0700
commitfe8822ad49b02b9c815b21c2bacb4a2c2f74bcae (patch)
tree57e278540adc2f4c227d49793e1a507c464a3ecc /ext
parentf7e556d96ebaa39c9361cbfd56e6eb5bb3b73b7c (diff)
downloadruby-openssl-fe8822ad49b02b9c815b21c2bacb4a2c2f74bcae.tar.gz
Apply ruby/ruby@038c0e5a804f1736e884f6741b9d7e84606580d7 to remove warnings
See also r50346 from ruby/ruby#875
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index 1a67d35d..7420c100 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -1124,7 +1124,7 @@ ossl_ssl_shutdown(SSL *ssl)
* Ignore the case SSL_shutdown returns -1. Empty handshake_func
* must not happen.
*/
- if (rc = SSL_shutdown(ssl))
+ if ((rc = SSL_shutdown(ssl)) != 0)
break;
}
SSL_clear(ssl);