LP#1468422 Report inactive card on password OK
authorBill Erickson <berickxx@gmail.com>
Mon, 11 Jan 2016 16:02:23 +0000 (11:02 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 11 Jan 2016 16:04:07 +0000 (11:04 -0500)
commit89c66ed8cd595951208d93b1f0fd37ddd6cad866
tree09157c3b8e38a1458778d1f5c15c52bcf8f34eff
parentca6e713fa980237baeccb8fb2e6ebac8ed0c4889
LP#1468422 Report inactive card on password OK

Prevent leaking information from authentication by only reporting that a
card is inactive if the caller provided the correct credentials.  This
is consistent with how the code handles inactive patrons.

To avoid a lot of code duplication and to reduce the potential for
leaking memory (C code, amiright?), this commit includes a number of
changes to avoid exiting the API function early and saving the memory
cleanup routines until the end of the API call.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/c-apps/oils_auth.c