]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
More for NULL modrdn modlist
authorHoward Chu <hyc@openldap.org>
Sat, 22 Dec 2018 20:58:08 +0000 (12:58 -0800)
committerHoward Chu <hyc@openldap.org>
Sat, 22 Dec 2018 20:58:08 +0000 (12:58 -0800)
servers/slapd/back-mdb/modrdn.c

index a83807dde5f1c46452c5fc6761dcd7cb45bd59d6..6e3770e202f2c7761adb6d87ffaf3317e3697974 100644 (file)
@@ -575,7 +575,7 @@ mdb_modrdn( Operation       *op, SlapReply *rs )
        if( num_ctrls ) rs->sr_ctrls = ctrls;
 
 return_results:
-       if ( dummy.e_attrs != e->e_attrs ) {
+       if ( e != NULL && dummy.e_attrs != e->e_attrs ) {
                attrs_free( dummy.e_attrs );
        }
        send_ldap_result( op, rs );