From 46e086910e8d8d5a344e80034344ebbba1433cff Mon Sep 17 00:00:00 2001 From: nahi Date: Wed, 2 Dec 2009 14:54:50 +0000 Subject: * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid warning at SSLSocket#connect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_ssl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/openssl') diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 6a3e200ee7..97c5583b92 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -963,6 +963,9 @@ ossl_ssl_initialize(int argc, VALUE *argv, VALUE self) ossl_ssl_set_ctx(self, ctx); ossl_ssl_set_sync_close(self, Qfalse); ossl_sslctx_setup(ctx); + + rb_iv_set(self, "@hostname", Qnil); + rb_call_super(0, 0); return self; -- cgit v1.2.3