[gnutls-dev] [PATCH] Fixing OpenPGP keyring import (again)

Timo Schulz twoaday at gmx.net
Tue May 22 11:44:25 CEST 2007


Ludovic Courtes wrote:

Hi,

>   err = cdk_stream_tmp_from_mem (data->data, data->size, &input);
>   if (!err)
>     err = cdk_stream_set_armor_flag (input, 0);
>   if (!err)
>     err = cdk_keydb_new_from_stream (&keyring->db, 0, input);  
>   if (err)
>     {
>       cdk_stream_close (input);
>       gnutls_assert ();
>     }
> 
> That won't work if `cdk_stream_tmp_from_mem ()' returns an error.

Why? input is set to NULL in the function and thus cdk_stream_close
does nothing because the param is NULL.


> How about ChangeLog entries BTW?

IMHO the ChangeLog entries are generated from the CVS commit logs.


	Timo




More information about the Gnutls-devel mailing list