Re: [evolution-patches] [exchange-calendar-alarms] fix 316710



Hi,

The str_uri which is used to store the clients loaded should not be
changed, since it is the key for a different hash table. There are many
other places that depend on this. So this might affect the assumptions
there.

Instead, leave str_uri as it is, and create a new pass_key that would be
generated from the EUri, and free it after fetching the password.

>         priv = an->priv;
> -       str_uri = e_source_get_uri (source);
> +       uri = e_source_get_uri (source);
> +       e_uri = e_uri_new (uri);
> +       str_uri = e_uri_to_string (e_uri, FALSE);
> +       e_uri_free (e_uri);
> +       g_free (uri);


Something like, 

e_uri = e_uri_new (str_uri);
pass_key = e_uri_to_string (e_uri, FALSE);
....

Thanks
-- Sarfraaz



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