]> git.sur5r.net Git - openldap/commitdiff
fix prev commit
authorKurt Zeilenga <kurt@openldap.org>
Mon, 6 Mar 2006 22:32:11 +0000 (22:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 6 Mar 2006 22:32:11 +0000 (22:32 +0000)
clients/tools/ldapmodify.c

index f0571c58b1965adff29ee91a737275af17514d8d..7765201fe4060486b1a4b3528e10d1f474dc6078 100644 (file)
@@ -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;