From: Howard Chu Date: Sat, 4 Jun 2011 02:31:29 +0000 (-0700) Subject: ITS#6946 fix double-free, broken by 77a7ef0 X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~1367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fcf2b163bf4340b1fee0f904f159380af9cd0b9;p=thirdparty%2Fopenldap.git ITS#6946 fix double-free, broken by 77a7ef0 --- diff --git a/clients/tools/ldapexop.c b/clients/tools/ldapexop.c index f17e085d3a..316eca1172 100644 --- a/clients/tools/ldapexop.c +++ b/clients/tools/ldapexop.c @@ -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;