segfault in GCRYCTL_SET_THREAD_CBS
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Oct 28 16:04:51 CET 2009
On 10/28/2009 09:54 AM, Werner Koch wrote:
> On Tue, 27 Oct 2009 23:50, dkg at fifthhorseman.net said:
>
> - ret = gcry_control(GCRYCTL_SET_THREAD_CBS, gcry_threads_pthread);
> + ret = gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
>
> This is the usual problem with general purpose ioctl-alike fucntions:
> You don't have any type checking. I added examples to the docs.
Thanks, Werner. That does fix it for me, and it seems obvious in
retrospect ;) I suspect having the examples in the docs will be useful.
Regards,
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 891 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20091028/250700c5/attachment.pgp>
More information about the Gcrypt-devel
mailing list