summaryrefslogtreecommitdiff
path: root/ext/openssl/openssl.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-07-03 16:21:02 +0200
committerAnatol Belski <ab@php.net>2015-07-03 16:21:02 +0200
commitb2812119792c5524fa6224275a012dcf0bfdb2e3 (patch)
treee492cd67885f4bf5266e10b678015e3659ddda6d /ext/openssl/openssl.c
parent344ff5dd4c538eaebea075f7705321f8b86d0b47 (diff)
downloadphp-git-b2812119792c5524fa6224275a012dcf0bfdb2e3.tar.gz
fix backport mistake
in 5.6 it has to be explicitly copied to avoid double free
Diffstat (limited to 'ext/openssl/openssl.c')
-rw-r--r--ext/openssl/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index ae3b2e2c9f..58ca098bcf 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -1645,7 +1645,7 @@ PHP_FUNCTION(openssl_spki_export)
BUF_MEM *bio_buf;
BIO_get_mem_ptr(out, &bio_buf);
- RETVAL_STRINGL((char *)bio_buf->data, bio_buf->length, 0);
+ RETVAL_STRINGL((char *)bio_buf->data, bio_buf->length, 1);
}
goto cleanup;