Jan Vcelak 9925959
Segmentation fault fix caused by double free in ldapexop.
Jan Vcelak 9925959
Jan Vcelak 9925959
Resolves: #699683
Jan Vcelak 9925959
Author: Jan Vcelak <jvcelak@redhat.com>
Jan Vcelak 9925959
Upstream: ITS #6946, git 3fcf2b1
Jan Vcelak 9925959
Jan Vcelak 9925959
diff --git a/clients/tools/ldapexop.c b/clients/tools/ldapexop.c
Jan Vcelak 9925959
index f17e085..316eca1 100644
Jan Vcelak 9925959
--- a/clients/tools/ldapexop.c
Jan Vcelak 9925959
+++ b/clients/tools/ldapexop.c
Jan Vcelak 9925959
@@ -247,7 +247,7 @@ main( int argc, char *argv[] )
Jan Vcelak 9925959
 		char		*retoid = NULL;
Jan Vcelak 9925959
 		struct berval	*retdata = NULL;
Jan Vcelak 9925959
 
Jan Vcelak 9925959
-		rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 1 );
Jan Vcelak 9925959
+		rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 0 );
Jan Vcelak 9925959
 
Jan Vcelak 9925959
 		if ( rc != LDAP_SUCCESS ) {
Jan Vcelak 9925959
 			tool_perror( "ldap_parse_extended_result", rc, NULL, NULL, NULL, NULL );
Jan Vcelak 9925959
@@ -294,7 +294,7 @@ main( int argc, char *argv[] )
Jan Vcelak 9925959
 			printf(_("# extended operation response\n"));
Jan Vcelak 9925959
 		}
Jan Vcelak 9925959
 
Jan Vcelak 9925959
-		rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 1 );
Jan Vcelak 9925959
+		rc = ldap_parse_extended_result( ld, res, &retoid, &retdata, 0 );
Jan Vcelak 9925959
 		if ( rc != LDAP_SUCCESS ) {
Jan Vcelak 9925959
 			tool_perror( "ldap_parse_extended_result", rc, NULL, NULL, NULL, NULL );
Jan Vcelak 9925959
 			rc = EXIT_FAILURE;