]> git.pld-linux.org Git - packages/proftpd.git/commitdiff
pam segfaults fix
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 22 Oct 2000 12:25:33 +0000 (12:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    proftpd-pam.patch -> 1.1

proftpd-pam.patch [new file with mode: 0644]

diff --git a/proftpd-pam.patch b/proftpd-pam.patch
new file mode 100644 (file)
index 0000000..7f1c47e
--- /dev/null
@@ -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:
This page took 0.146943 seconds and 4 git commands to generate.