aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext/grpc/rb_channel_credentials.c
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2017-04-19 15:54:27 -0700
committerGravatar murgatroid99 <mlumish@google.com>2017-04-19 15:54:27 -0700
commitce67bff2dff6146981928a9f06edf875e6566f4c (patch)
tree564f19af118dc29fd996c15c4cb1af9db96f92c5 /src/ruby/ext/grpc/rb_channel_credentials.c
parentfeaee850bf82251f3797749f9b2ef4580b1ba002 (diff)
parent5f4758e47850068bf4cda88aa9e5580a9ca7ed85 (diff)
Merge remote-tracking branch 'upstream/v1.3.x' into upmerge_v1.3.x
Diffstat (limited to 'src/ruby/ext/grpc/rb_channel_credentials.c')
-rw-r--r--src/ruby/ext/grpc/rb_channel_credentials.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ruby/ext/grpc/rb_channel_credentials.c b/src/ruby/ext/grpc/rb_channel_credentials.c
index f30426b26d..db713ed821 100644
--- a/src/ruby/ext/grpc/rb_channel_credentials.c
+++ b/src/ruby/ext/grpc/rb_channel_credentials.c
@@ -161,6 +161,9 @@ static VALUE grpc_rb_channel_credentials_init(int argc, VALUE *argv,
grpc_ssl_pem_key_cert_pair key_cert_pair;
const char *pem_root_certs_cstr = NULL;
MEMZERO(&key_cert_pair, grpc_ssl_pem_key_cert_pair, 1);
+
+ grpc_ruby_once_init();
+
/* "03" == no mandatory arg, 3 optional */
rb_scan_args(argc, argv, "03", &pem_root_certs, &pem_private_key,
&pem_cert_chain);