[Pkg-auth-maintainers] Bug#706067: libpam-dynalogin: crashes when connection to server cannot be established

Petr Čech cech at debian.org
Wed Apr 24 09:58:07 UTC 2013


Package: libpam-dynalogin
Version: 1.0.0-1
Severity: normal
Tags: upstream patch

Hi,
when the dynalogind server does not run, the PAM module segfaults. The following
patch solves the problem (for me, at least).

Regards,
Petr

diff --git a/pam_dynalogin/pam_dynalogin.c b/pam_dynalogin/pam_dynalogin.c
index df902ed..092c2f3 100644
--- a/pam_dynalogin/pam_dynalogin.c
+++ b/pam_dynalogin/pam_dynalogin.c
@@ -303,7 +303,7 @@ pam_sm_authenticate (pam_handle_t * pamh,
        retval = PAM_SUCCESS;

        done:
-       dynalogin_session_stop(session);
+       if (session) dynalogin_session_stop(session);
        free (query_prompt);
        free (onlypasswd);
        if (cfg.alwaysok && retval != PAM_SUCCESS)


-- System Information:
Debian Release: 7.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing'), (99, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.8-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libpam-dynalogin depends on:
ii  libc6                   2.17-0experimental2
ii  libdynaloginclient-1-0  1.0.0-1
ii  libgnutls28             3.1.10-1
ii  libpam0g                1.1.3-9

libpam-dynalogin recommends no packages.

libpam-dynalogin suggests no packages.

-- no debconf information



More information about the Pkg-auth-maintainers mailing list