]> granicus.if.org Git - postgresql/commit
Fix handling of previous password hooks in passwordcheck
authorMichael Paquier <michael@paquier.xyz>
Thu, 1 Aug 2019 00:37:28 +0000 (09:37 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 1 Aug 2019 00:37:28 +0000 (09:37 +0900)
commitb2a3d706b8d76b9d65e953942fc1ccafe892f692
tree1fd53a8bfcd1f8b58ebd459c117dbdce200bea19
parent07b39083c2aca003c4b1f289d7dc2368b5e2297a
Fix handling of previous password hooks in passwordcheck

When piling up loading of modules using check_password_hook_type,
loading passwordcheck would remove any trace of a previously-loaded
hook.  Unloading the module would also cause previous hooks to be
entirely gone.

Reported-by: Rafael Castro
Author: Michael Paquier
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/15932-78f48f9ef166778c@postgresql.org
Backpatch-through: 9.4
contrib/passwordcheck/passwordcheck.c