BUG #15932: Module passwordcheck doesn't reference previous hooks

The Post Office <noreply@postgresql.org>

From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: rafaelthca@gmail.com
Date: 2019-07-29T15:56:35Z
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15932
Logged by:          Rafael Castro
Email address:      rafaelthca@gmail.com
PostgreSQL version: 11.4
Operating system:   Any
Description:        

Module passwordcheck doesn't reference (thus, doesn't call) previous
hooks:

https://github.com/postgres/postgres/blob/master/contrib/passwordcheck/passwordcheck.c#L133

As a result, if passwordcheck is used hook check_password_hook becomes
useless.

Commits

  1. Fix handling of previous password hooks in passwordcheck