8000 * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket t… · devrandom/ruby@97ef6f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97ef6f4

Browse files
author
nahi
committed
* 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
1 parent 0dd8db8 commit 97ef6f4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Wed Dec 2 23:51:28 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
2+
3+
* ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid
4+< 9E41 /span>
warning at SSLSocket#connect.
5+
16
Tue Dec 1 18:01:43 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
27

38
* test/digest/test_digest_extend.rb: added tests for digest framework.

ext/openssl/ossl_ssl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,9 @@ ossl_ssl_initialize(int argc, VALUE *argv, VALUE self)
963963
ossl_ssl_set_ctx(self, ctx);
964964
ossl_ssl_set_sync_close(self, Qfalse);
965965
ossl_sslctx_setup(ctx);
966+
967+
rb_iv_set(self, "@hostname", Qnil);
968+
966969
rb_call_super(0, 0);
967970

968971
return self;

0 commit comments

Comments
 (0)
0