diff options
author | murgatroid99 <michael.lumish@gmail.com> | 2015-01-22 13:24:54 -0800 |
---|---|---|
committer | murgatroid99 <michael.lumish@gmail.com> | 2015-01-22 13:24:54 -0800 |
commit | cbaacad71956658ac4469b2a77effe1682919469 (patch) | |
tree | af1cb12b4dcc2ad4ad401cd71f9fa2b3833f4b76 /src/php | |
parent | 43598ccc39adfdc1c8019f28222b6d06b2ca632a (diff) |
Fixed junk data bug in PHP SSL Credentials
Diffstat (limited to 'src/php')
-rw-r--r-- | src/php/ext/grpc/credentials.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/php/ext/grpc/credentials.c b/src/php/ext/grpc/credentials.c index c63196bf90..46c825a48f 100644 --- a/src/php/ext/grpc/credentials.c +++ b/src/php/ext/grpc/credentials.c @@ -81,6 +81,8 @@ PHP_METHOD(Credentials, createSsl) { int root_certs_length, private_key_length = 0, cert_chain_length = 0; + pem_key_cert_pair.private_key = pem_key_cert_pair.cert_chain = NULL; + /* "s|s!s! == 1 string, 2 optional nullable strings */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!s!", &pem_root_certs, &root_certs_length, |