mayorga / 389-ds-base

Forked from 389-ds-base 7 years ago
Clone

602e9ef Ticket 47988: Schema learning mechanism, in replication, unable to extend an existing definition

Authored and Committed by nhosoi 9 years ago
    Ticket 47988: Schema learning mechanism, in replication, unable to extend an existing definition
    
    Description: Covscan FORWARD_NULL fix introduced by commit
    commit 51e05df9c37c66206041f026c9a67ec17bc9ea4a
    
    1. ldap/servers/slapd/schema.c:2490: var_deref_op: Dereferencing null pointer "mod->mod_vals.modv_bvals".
    2. ldap/servers/slapd/schema.c:2603: var_deref_op: Dereferencing null pointer "mod->mod_vals.modv_bvals".
    
    Added NULL check on mod->mod_bvalues to the for loop stop condition.
    
    (cherry picked from commit cfa8e4daef9253df0bd8a348f302299bda16b37c)
    (cherry picked from commit 1e2bf2b1ee6cd4c08a171edfedb10ee6bb1c3420)
    
        
file modified
+2 -2