mayorga / 389-ds-base

Forked from 389-ds-base 7 years ago
Clone

275ab83 Bug 663752 - Cert renewal for attrcrypt and encchangelog

Authored and Committed by nhosoi 12 years ago
    Bug 663752 - Cert renewal for attrcrypt and encchangelog
    
    https://bugzilla.redhat.com/show_bug.cgi?id=663752
    
    Description: There was a bug in using openldap API ldif_read_record
    in cl5ImportLDIF (replication/cl5_api.c).  The API ldif_read_record
    reuses the buffer allocated internally, where buffer length variable
    plays a role to determine the current buffer is large enough for the
    new ldif line.  The caller function cl5ImportLDIF freed the buffer
    without setting 0 to the length.  It caused segfault.
    This patch sets 0 to the buffer length when the buffer is freed.
    (cherry picked from commit 26695d3fd9cab800b141f67353e400ae65ed732e)