summaryrefslogtreecommitdiff
path: root/ext/oci8/oci8.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8/oci8.c')
-rw-r--r--ext/oci8/oci8.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 809ff816ae..2b63a6faf5 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -2055,6 +2055,9 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char
} else {
connection = (php_oci_connection *) calloc(1, sizeof(php_oci_connection));
connection->hash_key = zend_strndup(hashed_details.c, hashed_details.len);
+ if(connection->hash_key == NULL) {
+ return NULL;
+ }
connection->is_persistent = 1;
}
} else {