469c9b9 Ticket #47772 empty modify returns LDAP_INVALID_DN_SYNTAX

Authored and Committed by rmeggins 8 years ago
    Ticket #47772 empty modify returns LDAP_INVALID_DN_SYNTAX
    
    https://fedorahosted.org/389/ticket/47772
    Reviewed by: mreynolds (Thanks!)
    Branch: 389-ds-base-1.3.2
    Fix Description: Do not call normalize_mods2bvals if mods is NULL - just allow
    the empty modify op to proceed.  Since normalize_mods2bvals only cares about
    DN syntax attributes, it is appropriate to return LDAP_INVALID_DN_SYNTAX if
    normalize_mods2bvals returns NULL.
    Since this fix allows NULL mods to proceed throughout the code, I checked for
    all places that SLAPI_MODIFY_MODS was used, to make sure we don't try to
    dereference NULL mods, and to make sure the NULL mods were handled correctly
    otherwise.
    Platforms tested: RHEL6 x86_64
    Flag Day: no
    Doc impact: no
    (cherry-picked with conflicts from f5730129dfbc4ef3808735051b12cbfda518f4fb)
    
        
file modified
+12 -9
file modified
+1 -1
file modified
+1 -1