]> granicus.if.org Git - postgresql/commit
Fix handling of previous password hooks in passwordcheck
authorMichael Paquier <michael@paquier.xyz>
Thu, 1 Aug 2019 00:38:14 +0000 (09:38 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 1 Aug 2019 00:38:14 +0000 (09:38 +0900)
commitcb007441789dc19d40b4ae8902e0108b75811f00
treee61d55252bf3b3885905407e5af34aec082d9d39
parent7615afa48e7ca50eb73eaf8772736923c7d810f2
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