[PATCH libassuan] Fix NULL pointer dereference in _assuan_error().

Xi Wang xi.wang at gmail.com
Thu Nov 15 19:25:52 CET 2012


On 11/15/12 5:28 AM, Werner Koch wrote:
>>   /* Generate an error code specific to a context.  */
>> -#define _assuan_error(ctx, errcode) gpg_err_make ((ctx)->err_source, errcode)
>> +#define _assuan_error(ctx, errcode) \
>> +  gpg_err_make ((ctx) ? (ctx)->err_source : GPG_ERR_SOURCE_DEFAULT, errcode)
>
> We don't have a default source id for libassuan.  I may take this as an
> opportunity to add one for Libassuan.

Sounds great. :)  Do you want me to send a v2?

- xi



More information about the Gnupg-devel mailing list