[Date Prev][Date Next] [Chronological] [Thread] [Top]

Patch: Fix uninitialized variables in slapd (ITS#1683)

Full_Name: Hallvard B. Furuseth
Version: 2.1.0alpha
OS: Linux
URL: http://folk.uio.no/hbf/OpenLDAP/uninitialized.txt
Submission from: (NULL) (

attribute.c: ldbm_back_attribute() could log 'nvals' = jv - v even
             if an error happened so jv and v were not initialized.
             This patch logs nvals as 0 in that case.

controls.c:  get_ctrls() would log 'nctrls' even if an error happened
             so it was uninitialized.  This patch logs 0 in that case.