]> git.pld-linux.org Git - packages/php.git/blame - php-5.2.17-bug-319457.patch
use /usr/sbin/php-fpm as other branches
[packages/php.git] / php-5.2.17-bug-319457.patch
CommitLineData
dcb8ab6c
ER
1diff -up php-5.2.17/ext/oci8/oci8.c.bug-319457 php-5.2.17/ext/oci8/oci8.c
2--- php-5.2.17/ext/oci8/oci8.c.bug-319457 2012-02-16 08:25:41.000000000 +0700
3+++ php-5.2.17/ext/oci8/oci8.c 2012-02-16 08:26:55.000000000 +0700
4@@ -1187,7 +1187,14 @@ open:
5 connection->is_persistent = 0;
6 } else {
7 connection = (php_oci_connection *) calloc(1, sizeof(php_oci_connection));
8+ if (connection == NULL) {
9+ return NULL;
10+ }
11 connection->hash_key = zend_strndup(hashed_details.c, hashed_details.len);
12+ if (connection->hash_key == NULL) {
13+ free(connection);
14+ return NULL;
15+ }
16 connection->is_persistent = 1;
17 }
18 } else {
This page took 0.029723 seconds and 4 git commands to generate.