[icedtea-web] RFC: Fix for bug introduced by PR820

Deepak Bhole dbhole at redhat.com
Mon Feb 27 14:15:27 PST 2012


* Deepak Bhole <dbhole at redhat.com> [2012-02-27 16:51]:
> Hi,
> 
> This is a minor fix for a logic error in the PR820 patch I committed
> earlier today.
> 
> The error was not detectable in any of the live connect tests but a
> misbehaving applet (who's javascript call fails) exposed it.
> 
> OK for 1.1, 1.2 and HEAD?
> 

ChangeLog:

2012-02-27  Deepak Bhole <dbhole at redhat.com>

    * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc
    (_eval): Return 0 id to Java side if eval fails.
    (_call): Return 0 id to Java side if call fails.

> Thanks,
> Deepak

> diff -r 07717ba83e5f plugin/icedteanp/IcedTeaPluginRequestProcessor.cc
> --- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc	Mon Feb 27 22:04:05 2012 +0100
> +++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc	Mon Feb 27 16:47:35 2012 -0500
> @@ -862,8 +862,12 @@
>          {
>              eval_variant_str = "0";
>          }
> -        ((AsyncCallThreadData*) data)->result.append(eval_variant_str);
> +    } else
> +    {
> +        eval_variant_str = "0";
>      }
> +
> +    ((AsyncCallThreadData*) data)->result.append(eval_variant_str);
>      ((AsyncCallThreadData*) data)->result_ready = true;
>  
>      PLUGIN_DEBUG("_eval returning\n");
> @@ -914,10 +918,12 @@
>          {
>          	call_result_ptr_str = "0";
>          }
> -
> -        ((AsyncCallThreadData*) data)->result.append(call_result_ptr_str);
> +    } else
> +    {
> +        call_result_ptr_str = "0";
>      }
>  
> +    ((AsyncCallThreadData*) data)->result.append(call_result_ptr_str);
>      ((AsyncCallThreadData*) data)->result_ready = true;
>  
>      PLUGIN_DEBUG("_call returning\n");




More information about the distro-pkg-dev mailing list