Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mysql_user: reinitialize the privs list in privileges_unpack()
In some scenarios, `privileges_unpack()` called `privs.append()` inside a loop without first emptying or reinitializing the `privs` list from the prior iteration. This could result in an invalid `GRANT` statement, which incorrectly included privileges from a previously-built `GRANT` statement. Reinitialize `privs` on each pass of the loop to prevent this from occurring.
- Loading branch information