Something is missing at this point in process_ldif_rec(): } else if ( strcasecmp( value, T_ADDCTSTR ) == 0 ) { >>>> new_entry = 1; } else if ( strcasecmp( value, T_MODRDNCTSTR ) == 0 ) { If the next line is parseable and not T_MODSEPSTR (i.e. "-"), modop will be used uninitialized at this point: } else { >>>> addmodifyop( &pmods, modop, type, value, vlen ); } -- Hallvard