]> git.sur5r.net Git - openldap/commitdiff
ITS#6946 fix double-free, broken by 77a7ef0
authorHoward Chu <hyc@openldap.org>
Sat, 4 Jun 2011 02:31:29 +0000 (19:31 -0700)
committerHoward Chu <hyc@openldap.org>
Sat, 4 Jun 2011 02:31:29 +0000 (19:31 -0700)
clients/tools/ldapexop.c

index f17e085d3a9508cefc526333aae12a6a4926635e..316eca1172631c6e3cbf7ea0ef6c03e4c10c8bcf 100644 (file)
@@ -247,7 +247,7 @@ main( int argc, char *argv[] )
                char            *retoid = NULL;
                struct berval   *retdata = NULL;
 
-               rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 1 );
+               rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 0 );
 
                if ( rc != LDAP_SUCCESS ) {
                        tool_perror( "ldap_parse_extended_result", rc, NULL, NULL, NULL, NULL );
@@ -294,7 +294,7 @@ main( int argc, char *argv[] )
                        printf(_("# extended operation response\n"));
                }
 
-               rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 1 );
+               rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 0 );
                if ( rc != LDAP_SUCCESS ) {
                        tool_perror( "ldap_parse_extended_result", rc, NULL, NULL, NULL, NULL );
                        rc = EXIT_FAILURE;