Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 107554 Details for
Bug 145839
net-mail/poppassd_ceti does not handle pam_ldap correctly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
poppassd.c-2.patch
poppassd.c-2.patch (text/plain), 1.08 KB, created by
Warren Howard
on 2007-01-20 16:32:47 UTC
(
hide
)
Description:
poppassd.c-2.patch
Filename:
MIME Type:
Creator:
Warren Howard
Created:
2007-01-20 16:32:47 UTC
Size:
1.08 KB
patch
obsolete
>--- ../1/poppassd.c 2006-11-09 20:46:34.000000000 +0530 >+++ poppassd.c 2006-11-09 21:17:07.000000000 +0530 >@@ -123,11 +123,12 @@ > void *appdata_ptr; > { > int i; >- struct pam_response *r = malloc(sizeof(struct pam_response) * num_msg); >+ struct pam_response *r; > > if(num_msg <= 0) > return(PAM_CONV_ERR); > >+ r = malloc(sizeof(struct pam_response) * num_msg); > if(r == NULL) > return(PAM_CONV_ERR); > >@@ -137,9 +138,9 @@ > syslog(LOG_ERR, "PAM error: %s", msg[i]->msg); > /* > * If there is an error, we don't want to be sending in >- * anything more, so set pop_state to invalid >+ * anything more, so we quit after printing the error message. > */ >- pop_state = POP_SKIPASS; >+ exit(1); > } > > r[i].resp_retcode = 0; >@@ -228,7 +229,7 @@ > > pw=getpwnam(user); > >- if(pw->pw_uid<POP_MIN_UID || pw == NULL) { >+ if(pw == NULL || pw->pw_uid<POP_MIN_UID) { > WriteToClient("500 Old password is incorrect."); > syslog(LOG_ERR, "failed attempt to change password for %s", user); > exit(1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 145839
:
95639
|
107552
| 107554 |
107556
|
107557
|
107559
|
671578