From: Kurt Zeilenga Date: Sat, 16 Sep 2006 17:20:29 +0000 (+0000) Subject: Check opattrs add result X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~123 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c68de27c8f4a027fd3563767dd82e733a798259;p=openldap Check opattrs add result --- diff --git a/servers/slapd/back-ldif/ldif.c b/servers/slapd/back-ldif/ldif.c index 6e78d87c8b..bec6a02b64 100644 --- a/servers/slapd/back-ldif/ldif.c +++ b/servers/slapd/back-ldif/ldif.c @@ -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 ) );