From d43d4cfe653617acad866c8efee29ee19c9d77bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sun, 22 Oct 2000 12:25:33 +0000 Subject: [PATCH] pam segfaults fix Changed files: proftpd-pam.patch -> 1.1 --- proftpd-pam.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 proftpd-pam.patch diff --git a/proftpd-pam.patch b/proftpd-pam.patch new file mode 100644 index 0000000..7f1c47e --- /dev/null +++ b/proftpd-pam.patch @@ -0,0 +1,20 @@ +diff -urN proftpd-1.2.0rc2.org/modules/mod_pam.c proftpd-1.2.0rc2/modules/mod_pam.c +--- proftpd-1.2.0rc2.org/modules/mod_pam.c Sun Oct 22 14:19:54 2000 ++++ proftpd-1.2.0rc2/modules/mod_pam.c Sun Oct 22 14:20:16 2000 +@@ -73,14 +73,14 @@ + /* PAM frees response and resp. If you don't believe this, please read + * the actual PAM RFCs as well as have a good look at libpam. + */ +- response[i].resp = (pam_user && *pam_user) ? strdup(pam_user) : NULL; ++ response[i].resp = (pam_user) ? strdup(pam_user) : NULL; + break; + + case PAM_PROMPT_ECHO_OFF: + /* PAM frees response and resp. If you don't believe this, please read + * the actual PAM RFCs as well as have a good look at libpam. + */ +- response[i].resp = (pam_pass && *pam_pass) ? strdup(pam_pass) : NULL; ++ response[i].resp = (pam_pass) ? strdup(pam_pass) : NULL; + break; + + case PAM_TEXT_INFO: -- 2.44.0