[gnutls-devel] err_pos not set on error in gnutls_priority_init

Dan Fandrich dan at coneharvesters.com
Sun Jul 13 01:26:44 CEST 2014

The documentation for gnutls_priority_init states:

  @err_pos: In case of an error this will have the position in the string the error occured

Leaving the issue of the spelling error in "occurred", there is a code path in
which an error is returned without this argument being set. If gnutls_calloc
returns NULL, then GNUTLS_E_MEMORY_ERROR is returned and err_pos is NOT
touched.  The code fragment setting *err_pos should be moved the calloc call to
fix this.

>>> Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 308 bytes
Desc: not available
URL: </pipermail/attachments/20140713/f9a77256/attachment.sig>

More information about the Gnutls-devel mailing list