gpaterno / otpd

Automatically exported from code.google.com/p/otpd
GNU General Public License v2.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago

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