f573012 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
    Reviewed by: mreynolds (Thanks!)
    Branch: master
    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
    Platforms tested: RHEL6 x86_64
    Flag Day: no
    Doc impact: no
file modified
+12 -9
file modified
+1 -1
file modified
+1 -1