From 3fcf2b163bf4340b1fee0f904f159380af9cd0b9 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 3 Jun 2011 19:31:29 -0700 Subject: [PATCH] ITS#6946 fix double-free, broken by 77a7ef0 --- clients/tools/ldapexop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5