Restore the NULL check that was removed in upstream r913. It is not
unreasonable to call pam_end() with a NULL pamh in error handling code. Reported by: rwatson
This commit is contained in:
parent
7e31684ea4
commit
e4deb071bd
@ -72,8 +72,7 @@ pam_close_session(pam_handle_t *_pamh,
|
|||||||
|
|
||||||
int
|
int
|
||||||
pam_end(pam_handle_t *_pamh,
|
pam_end(pam_handle_t *_pamh,
|
||||||
int _status)
|
int _status);
|
||||||
OPENPAM_NONNULL((1));
|
|
||||||
|
|
||||||
int
|
int
|
||||||
pam_get_data(const pam_handle_t *_pamh,
|
pam_get_data(const pam_handle_t *_pamh,
|
||||||
|
@ -60,6 +60,8 @@ pam_end(pam_handle_t *pamh,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
ENTER();
|
ENTER();
|
||||||
|
if (pamh == NULL)
|
||||||
|
RETURNC(PAM_SYSTEM_ERR);
|
||||||
|
|
||||||
/* clear module data */
|
/* clear module data */
|
||||||
while ((dp = pamh->module_data) != NULL) {
|
while ((dp = pamh->module_data) != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user