[gnutls-devel] no way to detect gnutls_global_init() failure in 3.3

Dan Winship danw at gnome.org
Thu Apr 24 22:01:45 CEST 2014


If gnutls_global_init() has been called before, it always returns 0,
even if it failed the first time. Since it now gets called from a
constructor, this means it will always return 0 when called from
application code, even if it failed when called from the constructor.

Probably it should save the original return value for future calls?

(qv https://bugzilla.redhat.com/show_bug.cgi?id=1091053)

-- Dan



More information about the Gnutls-devel mailing list