diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2022-04-28 09:58:20 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2022-04-28 15:40:08 +0400 |
commit | 7215b0035435c15362bd94d169943eaad851d7dc (patch) | |
tree | 67f349972c8cd226d52789870c389fdabaa6cca4 | |
parent | af810407f78b7f792a9bb8c47c8c532eb3b3a758 (diff) | |
download | mariadb-git-7215b0035435c15362bd94d169943eaad851d7dc.tar.gz |
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.
-rw-r--r-- | plugin/auth_pam/auth_pam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/auth_pam/auth_pam.c b/plugin/auth_pam/auth_pam.c index 3f3a49bf55d..d232b3b5c65 100644 --- a/plugin/auth_pam/auth_pam.c +++ b/plugin/auth_pam/auth_pam.c @@ -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; |