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

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

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions