Commit 7215b003 authored by Alexey Botchkov's avatar Alexey Botchkov

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.
parent af810407
...@@ -102,7 +102,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info) ...@@ -102,7 +102,7 @@ static int pam_auth(MYSQL_PLUGIN_VIO *vio, MYSQL_SERVER_AUTH_INFO *info)
if (info->user_name == 0) if (info->user_name == 0)
{ {
if ((pkt_len= vio->read_packet(vio, &pkt)) < 0) if ((pkt_len= vio->read_packet(vio, &pkt)) < 0)
return CR_ERROR; goto error_ret;
} }
else else
pkt= NULL; pkt= NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment