From cafc204a13161af78dac709f412dda322bd5a0ac Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 6 Mar 2006 22:32:11 +0000 Subject: [PATCH] fix prev commit --- clients/tools/ldapmodify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;