summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-05-17 17:51:15 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-18 05:40:53 +0200
commita4b2352c97053c79fd0d78d0dd647beed69b17e5 (patch)
treedd1762ea03ca849f193ec0faeb97f198e3d1de4b
parent654f1abaec4e26453cb88ef02a8a71ba9aea0026 (diff)
downloadsssd-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.c2
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();