MDEV-28431 auth_pam tool left zombie processes.

The faulure in username packet reading can lead to the
auth_plugin_tool zombie. So check and close the application.
This commit is contained in:
Alexey Botchkov 2022-04-28 09:58:20 +04:00
commit 7215b00354

View file

@ -102,7 +102,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
if (info->user_name == 0)
{
if ((pkt_len= vio->read_packet(vio, &pkt)) < 0)
return CR_ERROR;
goto error_ret;
}
else
pkt= NULL;