(ITS#8797) improper use of gnutls causes segfault