pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] ssl/tls certificate handling? [PATCH]


From: Petr Kovar
Subject: Re: [Pan-users] ssl/tls certificate handling? [PATCH]
Date: Mon, 29 Feb 2016 17:18:36 +0100

On Wed, 24 Feb 2016 10:25:30 -0800
walt <address@hidden> wrote:

> On Tue, 23 Feb 2016 19:44:00 -0800
> walt <address@hidden> wrote:
> 
> > On Wed, 24 Feb 2016 00:50:23 +0000 (UTC)
> > Duncan <address@hidden> wrote:
> > 
> > > walt posted on Tue, 23 Feb 2016 16:02:23 -0800 as excerpted:
> > > 
> > > > Another, different bug is in the dialog box for editing the certs
> > > > ("Edit/Edit SSL Certificates").  It crashes pan every time but I
> > > > don't know why.  Can anyone reproduce this?  
> > > 
> > > Thanks for crashing pan for me! =:^)
> > > 
> > > (J/K.  I was expecting it since you said it was crashing for you,
> > > and I had only the two messages, this one and my sibling reply,
> > > that I had read and that I knew were going to come back as unread
> > > after pan restart.)
> > > 
> > > So definitely reproducible, tho given that the cert files are
> > > obviously corrupt, that'd be expected.
> > > 
> > 
> > I've tracked the crash to pan/gui/server-ui.cc:971 :
> > 
> > void
> > pan :: render_cert_flag (GtkTreeViewColumn * ,
> >                          GtkCellRenderer   * renderer,
> >                          GtkTreeModel      * model,
> >                          GtkTreeIter       * iter,
> >                          gpointer            )
> > {
> >   bool index (false);
> >   gtk_tree_model_get (model, iter, COL_FLAG, &index, -1);
> >   g_object_set (renderer, "pixbuf", _icons[index].pixbuf, NULL);
> > }
> 
> Declaring an index to be a boolean instead of an integer was probably
> just a brain fart.  The patch below fixes the crash, but the dialog box
> doesn't seem to have any function other than to look pretty :)
> 
> diff --git a/pan/gui/server-ui.cc b/pan/gui/server-ui.cc
> index 110c101..0895c61 100644
> --- a/pan/gui/server-ui.cc
> +++ b/pan/gui/server-ui.cc
> @@ -975,7 +975,7 @@ pan :: render_cert_flag (GtkTreeViewColumn * ,
>                           GtkTreeIter       * iter,
>                           gpointer            )
>  {
> -  bool index (false);
> +  int index (0);
>    gtk_tree_model_get (model, iter, COL_FLAG, &index, -1);
>    g_object_set (renderer, "pixbuf", _icons[index].pixbuf, NULL);
>  }

Thanks for the patch, committed as 055fe9566fc3d1120de376671df9fd3860167e24.

pk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]