From: Kurt Zeilenga Date: Mon, 6 Mar 2006 22:32:11 +0000 (+0000) Subject: fix prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~141 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cafc204a13161af78dac709f412dda322bd5a0ac;p=openldap fix prev commit --- diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index f0571c58b1..7765201fe4 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -1139,7 +1139,7 @@ static int process_response( const char *dn ) { LDAPMessage *res; - int rc = LDAP_OTHER; + int rc = LDAP_OTHER, msgtype; struct timeval tv = { 0, 0 }; int err; char *text = NULL, *matched = NULL, **refs = NULL; @@ -1164,6 +1164,8 @@ static int process_response( } } + msgtype = ldap_msgtype( res ); + rc = ldap_parse_result( ld, res, &err, &matched, &text, &refs, &ctrls, 1 ); if ( rc == LDAP_SUCCESS ) rc = err;