fix authentication failure collab/gmcharlt/brute_force_fix_round2_rel_1_6
authorGalen Charlton <gmc@esilibrary.com>
Thu, 6 Oct 2011 18:57:38 +0000 (14:57 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 6 Oct 2011 18:57:38 +0000 (14:57 -0400)
commit8d6a43dccf94360d8e9ede0fa73664085026c74a
treef1e0b1d05060a7c05d74e45dd6541ada40d4a328
parent3aadaf436fcdf6366a765798c583cc7c9b71bcc0
fix authentication failure

Ensure that the auth_limit values are read when open-ils.auth
initializes, not during oilsAuthInit().  This solves a problem
observed on brick-based setups where authentication could
incorrectly fail because the drone that processes
open-ils.auth.authenticate.complete didn't have the the block
count value initialized yet.

Also fixed type nit when compare the fail count to the block
limit.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/c-apps/oils_auth.c