From: Lennart Poettering Date: Thu, 7 May 2020 08:49:52 +0000 (+0200) Subject: pam_systemd_home: use correct macro for converting ptr to fd X-Git-Tag: v246-rc1~386^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da4340fd43abb9aed3a0fb29f632e9ac5f162f8a;p=thirdparty%2Fsystemd.git pam_systemd_home: use correct macro for converting ptr to fd --- diff --git a/src/home/pam_systemd_home.c b/src/home/pam_systemd_home.c index 0d887c047bc..7662fa69ebf 100644 --- a/src/home/pam_systemd_home.c +++ b/src/home/pam_systemd_home.c @@ -411,7 +411,7 @@ static int acquire_home( /* If we already have acquired the fd, let's shortcut this */ r = pam_get_data(handle, "systemd-home-fd", &home_fd_ptr); - if (r == PAM_SUCCESS && PTR_TO_INT(home_fd_ptr) >= 0) + if (r == PAM_SUCCESS && PTR_TO_FD(home_fd_ptr) >= 0) return PAM_SUCCESS; r = pam_acquire_bus_connection(handle, &bus);