diff options
author | Thomas Punt <tpunt@hotmail.co.uk> | 2017-04-01 19:38:37 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-04-02 00:58:19 +0200 |
commit | 9f08aff3fdd4d1898f5b4bd72ac4c9614d4c65a3 (patch) | |
tree | d090a9d24b9a411d9a438fbf143b10cb801c155a /ext/mysqlnd | |
parent | e0f68ae1441bac063e2a72b980f1ddfee596ea25 (diff) | |
download | php-git-9f08aff3fdd4d1898f5b4bd72ac4c9614d4c65a3.tar.gz |
Remove superfluous allocation checks around ZMM-based functions
Diffstat (limited to 'ext/mysqlnd')
-rw-r--r-- | ext/mysqlnd/mysqlnd_net.c | 3 | ||||
-rw-r--r-- | ext/mysqlnd/mysqlnd_vio.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/ext/mysqlnd/mysqlnd_net.c b/ext/mysqlnd/mysqlnd_net.c index c6a7f721d9..80b6b46b74 100644 --- a/ext/mysqlnd/mysqlnd_net.c +++ b/ext/mysqlnd/mysqlnd_net.c @@ -906,9 +906,6 @@ MYSQLND_METHOD(mysqlnd_net, enable_ssl)(MYSQLND_NET * const net) zend_bool any_flag = FALSE; DBG_ENTER("mysqlnd_net::enable_ssl"); - if (!context) { - DBG_RETURN(FAIL); - } if (net->data->options.ssl_key) { zval key_zval; diff --git a/ext/mysqlnd/mysqlnd_vio.c b/ext/mysqlnd/mysqlnd_vio.c index 33de52c6be..ef097c9461 100644 --- a/ext/mysqlnd/mysqlnd_vio.c +++ b/ext/mysqlnd/mysqlnd_vio.c @@ -492,9 +492,6 @@ MYSQLND_METHOD(mysqlnd_vio, enable_ssl)(MYSQLND_VIO * const net) zend_bool any_flag = FALSE; DBG_ENTER("mysqlnd_vio::enable_ssl"); - if (!context) { - DBG_RETURN(FAIL); - } if (net->data->options.ssl_key) { zval key_zval; |