Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

strncmp error on ldap.c and otp.c #18

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment
Open

strncmp error on ldap.c and otp.c #18

GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I I have a error on password override of otpd with ldap.

The problem are in errate use of strncmp.

strncmp return 0 when the string is equals:


if (strncmp(p, "{MD5}", 5)) {...

must change in  

if (strncmp(p, "{MD5}", 5)==0) { ...

this erro are present in ldap.c and otp.c for password override.


Original issue reported on code.google.com by marcom1...@gmail.com on 12 Oct 2010 at 3:11

@GoogleCodeExporter
Copy link
Author

Original comment by fr...@gmail.com on 2 Nov 2010 at 12:12

  • Changed state: Accepted
  • Added labels: Priority-Critical, Milestone-Release3.3.0
  • Removed labels: Priority-Medium

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant