[gnutls-devel] err_pos not set on error in gnutls_priority_init
Nikos Mavrogiannopoulos
nmav at gnutls.org
Tue Jul 22 13:21:17 CEST 2014
On Sun, Jul 13, 2014 at 1:26 AM, Dan Fandrich <dan at coneharvesters.com> wrote:
> 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
> 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.
Thank you for reporting that. I've updated that to always set a valid
err_pos. However, it should be noted that err_pos makes sense if this
function returns GNUTLS_E_INVALID_REQUEST, which indicates a parsing
error.
regards,
Nikos
More information about the Gnutls-devel
mailing list