]> granicus.if.org Git - php/commitdiff
fix login failure with empty password. This is 5.5 specific - new code
authorAndrey Hristov <andrey@php.net>
Fri, 28 Sep 2012 09:58:41 +0000 (11:58 +0200)
committerAndrey Hristov <andrey@php.net>
Fri, 28 Sep 2012 09:58:41 +0000 (11:58 +0200)
ext/mysqlnd/mysqlnd.c

index 3fa9d11a28488343c757c4052bc845cb4bde36d0..557924cdaf272dcb413edcb9862c7a099415fbc3 100644 (file)
@@ -582,8 +582,8 @@ mysqlnd_run_authentication(
                        scrambled_data =
                                auth_plugin->methods.get_auth_data(NULL, &scrambled_data_len, conn, user, passwd, passwd_len,
                                                                                                   plugin_data, plugin_data_len, options, &conn->net->data->options, mysql_flags TSRMLS_CC);
-                       if (!scrambled_data || conn->error_info->error_no) {
-                               goto end;                       
+                       if (conn->error_info->error_no) {
+                               goto end;       
                        }
                        if (FALSE == is_change_user) {
                                ret = mysqlnd_auth_handshake(conn, user, passwd, passwd_len, db, db_len, options, mysql_flags,