andrey Thu, 27 Jan 2011 17:30:29 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307798
Log: fix a crash in new code Changed paths: U php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c Modified: php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c =================================================================== --- php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c 2011-01-27 16:02:30 UTC (rev 307797) +++ php/php-src/trunk/ext/mysqlnd/mysqlnd_auth.c 2011-01-27 17:30:29 UTC (rev 307798) @@ -141,7 +141,9 @@ } SET_NEW_MESSAGE(conn->last_message, conn->last_message_len, auth_resp_packet->message, auth_resp_packet->message_len, conn->persistent); - conn->charset = mysqlnd_find_charset_nr(auth_packet->charset_no); + if (use_full_blown_auth_packet == TRUE) { + conn->charset = mysqlnd_find_charset_nr(auth_packet->charset_no); + } ret = PASS; end: PACKET_FREE(change_auth_resp_packet);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php