diff options
author | des <des@FreeBSD.org> | 2010-03-22 10:58:16 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2010-03-22 10:58:16 +0000 |
commit | 1b15b2817c3ed8a51b9d881b25bfa61bdfb0801a (patch) | |
tree | f78ffd6a73fe31476433101872b45ea631e2edfc | |
parent | 02429961c4403e7a8bbcae33096f4b0382fdbd82 (diff) | |
download | FreeBSD-src-1b15b2817c3ed8a51b9d881b25bfa61bdfb0801a.zip FreeBSD-src-1b15b2817c3ed8a51b9d881b25bfa61bdfb0801a.tar.gz |
Merge upstream r432:
pam_end() already contains a NULL check, and it is not unreasonable to
call it with a NULL pamh in a cleanup / error-handling situation. Remove
OPENPAM_NONNULL, which may cause gcc to optimize away the NULL check.
-rw-r--r-- | include/security/pam_appl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/security/pam_appl.h b/include/security/pam_appl.h index 8316c68..131c2f9 100644 --- a/include/security/pam_appl.h +++ b/include/security/pam_appl.h @@ -72,8 +72,7 @@ pam_close_session(pam_handle_t *_pamh, int pam_end(pam_handle_t *_pamh, - int _status) - OPENPAM_NONNULL((1)); + int _status); int pam_get_data(const pam_handle_t *_pamh, |