]> granicus.if.org Git - php/commit
Fix incorrect free for last_message
authorQianqian Bu <qibu@microsoft.com>
Fri, 3 Apr 2020 07:44:41 +0000 (15:44 +0800)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 3 Apr 2020 08:05:16 +0000 (10:05 +0200)
commitee21657a6a2d64e12ba03eae70dd7b7cb2569d82
treeb86146f2df7b9c2318b493e8852a77e099e74fdd
parentcf68bc413bd7548643058a63dbf4d907346d184c
Fix incorrect free for last_message

In commit a7305eb539596e175bd6c3ae9a20953358c5d677 the last_message
field of the connection object was changed to be always non-persistent.
But there is a place on change_user path that still treats it
depending on conn->persistent flag. This will cause PHP crash after
com_change_user success when there is last_message set
ext/mysqlnd/mysqlnd_auth.c