ruby-changes:14159
From: nahi <ko1@a...>
Date: Wed, 2 Dec 2009 23:55:09 +0900 (JST)
Subject: [ruby-changes:14159] Ruby:r25976 (trunk): * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid
nahi 2009-12-02 23:54:50 +0900 (Wed, 02 Dec 2009) New Revision: 25976 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25976 Log: * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid warning at SSLSocket#connect. Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_ssl.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25975) +++ ChangeLog (revision 25976) @@ -1,3 +1,8 @@ +Wed Dec 2 23:51:28 2009 NAKAMURA, Hiroshi <nahi@r...> + + * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid + warning at SSLSocket#connect. + Tue Dec 1 18:01:43 2009 NAKAMURA, Hiroshi <nahi@r...> * test/digest/test_digest_extend.rb: added tests for digest framework. Index: ext/openssl/ossl_ssl.c =================================================================== --- ext/openssl/ossl_ssl.c (revision 25975) +++ ext/openssl/ossl_ssl.c (revision 25976) @@ -963,6 +963,9 @@ 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/