diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/openssl/ossl_ssl.c | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Fri Sep 16 22:10:31 2016 Naohisa Goto <ngotogenome@gmail.com> + + * ext/openssl/ossl_ssl.c (ssl_npn_select_cb_common): Fix compile error + with old version of fcc (Fujitsu C Compiler) on Solaris 10. + [Bug #12769] [ruby-dev:49809] + Fri Sep 16 21:28:25 2016 Naohisa Goto <ngotogenome@gmail.com> * internal.h (MAYBE_UNUSED): The fallback definition is needed. diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 053613adae..861f820dbd 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -636,7 +636,11 @@ ssl_npn_select_cb_common(SSL *ssl, VALUE cb, const unsigned char **out, { VALUE selected; int status; - struct npn_select_cb_common_args args = { cb, in, inlen }; + struct npn_select_cb_common_args args; + + args.cb = cb; + args.in = in; + args.inlen = inlen; selected = rb_protect(npn_select_cb_common_i, (VALUE)&args, &status); if (status) { |