Marked public as the issue was already reported upstream (although it was closed due to some mistakes by the reporter: <https://sourceforge.net/tracker/?func=detail&aid=925424&group_id=5741&atid=305741>).
I've researched the issue and made a quick patch for pam_mysql.c, I'm linking the branch I made to this report.
Marked public as the issue was already reported upstream (although it was closed due to some mistakes by the reporter: <https:/ /sourceforge. net/tracker/ ?func=detail& aid=925424& group_id= 5741&atid= 305741>).
I've researched the issue and made a quick patch for pam_mysql.c, I'm linking the branch I made to this report.