codehotter / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

ae13e44 Ticket 571 - server does not accept 0 length LDAP Control sequence

Authored and Committed by mreynolds 11 years ago
    Ticket 571 - server does not accept 0 length LDAP Control sequence
    
    Bug Description: If we receive an incorrect control, with non NULL bv_val but
                     bv_len=0, it can trigger a crash.  This bug occurs because
                     of a call of openldap ber_init with such incorrect control.
    
    Fix Description: Before calling ber_init, check that the control length is not 0.
    
    https://fedorahosted.org/389/ticket/571
    
    Reviewed by richm(Thanks!)
    (cherry picked from commit 36425a3d5875a05ee812c293b50eb0da44d8d39e)