aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php
diff options
context:
space:
mode:
authorGravatar murgatroid99 <michael.lumish@gmail.com>2015-01-22 13:24:54 -0800
committerGravatar murgatroid99 <michael.lumish@gmail.com>2015-01-22 13:24:54 -0800
commitcbaacad71956658ac4469b2a77effe1682919469 (patch)
treeaf1cb12b4dcc2ad4ad401cd71f9fa2b3833f4b76 /src/php
parent43598ccc39adfdc1c8019f28222b6d06b2ca632a (diff)
Fixed junk data bug in PHP SSL Credentials
Diffstat (limited to 'src/php')
-rw-r--r--src/php/ext/grpc/credentials.c2
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,