summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-06-14 02:38:39 +0300
committerDmitry Stogov <dmitry@zend.com>2018-06-14 02:38:39 +0300
commit11507c0e1bfa17a96480f3648397f6975c31551e (patch)
tree246aae4356814583dc26ab359cfee843cbf95aab
parente77077edebfb8510f5659947bbb61636549172c9 (diff)
downloadphp-git-11507c0e1bfa17a96480f3648397f6975c31551e.tar.gz
Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid keeping "invalid" pointer)
-rw-r--r--ext/mysqlnd/mysqlnd_connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_connection.c b/ext/mysqlnd/mysqlnd_connection.c
index e77e3c1fb4..2f458149a6 100644
--- a/ext/mysqlnd/mysqlnd_connection.c
+++ b/ext/mysqlnd/mysqlnd_connection.c
@@ -684,6 +684,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, connect)(MYSQLND_CONN_DATA * conn,
conn->unix_socket.s = NULL;
goto err;
}
+ conn->unix_socket.s = NULL;
}
{