]> git.sur5r.net Git - openldap/commitdiff
Further refine last commit
authorKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 2004 15:40:07 +0000 (15:40 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 2004 15:40:07 +0000 (15:40 +0000)
clients/tools/ldapmodify.c

index 25dfcdf2df5ee8bf577bb4af0d074d44697a6459..e5046357cb487b26129344c24925029e374399e5 100644 (file)
@@ -1129,7 +1129,7 @@ static int process_response(
 
        if( ldap_msgtype( res ) != LDAP_RES_INTERMEDIATE ) {
                rc = ldap_result2error( ld, res, 1 );
-               if (rc) ldap_perror( ld, opstr );
+               if( rc != LDAP_SUCCESS ) ldap_perror( ld, opstr );
                return rc;
        }