diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-05-17 17:51:15 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-18 05:40:53 +0200 |
commit | a4b2352c97053c79fd0d78d0dd647beed69b17e5 (patch) | |
tree | dd1762ea03ca849f193ec0faeb97f198e3d1de4b | |
parent | 654f1abaec4e26453cb88ef02a8a71ba9aea0026 (diff) | |
download | sssd-a4b2352c97053c79fd0d78d0dd647beed69b17e5.tar.gz sssd-a4b2352c97053c79fd0d78d0dd647beed69b17e5.tar.xz sssd-a4b2352c97053c79fd0d78d0dd647beed69b17e5.zip |
PAM: macro PAM_DATA_REPLACE isn't available in openpam.
This part was introduced in commit dba7903ba7fc04bc331004b0453938c116be3663
"PAM: close socket fd with pam_set_data"
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r-- | src/sss_client/pam_sss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c index ddf4ded7c..4dae7e1ca 100644 --- a/src/sss_client/pam_sss.c +++ b/src/sss_client/pam_sss.c @@ -121,10 +121,12 @@ static void free_exp_data(pam_handle_t *pamh, void *ptr, int err) static void close_fd(pam_handle_t *pamh, void *ptr, int err) { +#ifdef PAM_DATA_REPLACE if (err & PAM_DATA_REPLACE) { /* Nothing to do */ return; } +#endif /* PAM_DATA_REPLACE */ D(("Closing the fd")); sss_pam_close_fd(); |