]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldif/ldif.c
More ldapbis cleanup
[openldap] / servers / slapd / back-ldif / ldif.c
index 6e78d87c8b776605b48d4ca89ba43a6aa9e53354..bec6a02b648fca54e44fc2dd450e86d905c5ed36 100644 (file)
@@ -791,7 +791,10 @@ static int ldif_back_add(Operation *op, SlapReply *rs) {
        char textbuf[SLAP_TEXT_BUFLEN];
 
        Debug( LDAP_DEBUG_TRACE, "ldif_back_add: \"%s\"\n", dn.bv_val, 0, 0);
-       slap_add_opattrs( op, &rs->sr_text, textbuf, sizeof( textbuf ), 1 );
+
+       rs->sr_err = slap_add_opattrs( op,
+               &rs->sr_text, textbuf, sizeof( textbuf ), 1 );
+       if ( rs->sr_err != LDAP_SUCCESS ) goto send_res;
 
        rs->sr_err = entry_schema_check(op, e, NULL, 0,
                &rs->sr_text, textbuf, sizeof( textbuf ) );