]> granicus.if.org Git - php/commitdiff
put the trigger in the right place
authorAndrey Hristov <andrey@php.net>
Tue, 20 Apr 2010 19:09:56 +0000 (19:09 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 20 Apr 2010 19:09:56 +0000 (19:09 +0000)
ext/mysqlnd/mysqlnd_wireprotocol.c

index 650ce38f96ea1a24d8c450b0877041beae113477..252c7f18c35da3a1125d2610a47bd302b7cfc0bf 100644 (file)
@@ -1689,11 +1689,11 @@ php_mysqlnd_chg_user_read(void *_packet, MYSQLND *conn TSRMLS_DC)
 
        if (packet->header.size == 1 && buf[0] == EODATA_MARKER && packet->server_capabilities & CLIENT_SECURE_CONNECTION) {
                /* We don't handle 3.23 authentication */
+               packet->server_asked_323_auth = TRUE;
                DBG_RETURN(FAIL);
        }
 
        if (ERROR_MARKER == packet->field_count) {
-               packet->server_asked_323_auth = TRUE;
                php_mysqlnd_read_error_from_line(p, packet->header.size - 1,
                                                                                 packet->error_info.error,
                                                                                 sizeof(packet->error_info.error),