Skip to content

Commit

Permalink
MDEV-28431 auth_pam tool left zombie processes.
Browse files Browse the repository at this point in the history
The faulure in username packet reading can lead to the
auth_plugin_tool zombie. So check and close the application.
  • Loading branch information
Alexey Botchkov committed Apr 28, 2022
1 parent af81040 commit 7215b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/auth_pam/auth_pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7215b00

Please sign in to comment.