From: Daniel P. Berrange Date: Tue, 10 Apr 2012 11:15:46 +0000 (+0100) Subject: Fix comment about GNUTLS initialization/cleanup X-Git-Tag: v0.9.12-rc1~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20171c8dc0e3efec7437d8d00e32737d9909e4f7;p=thirdparty%2Flibvirt.git Fix comment about GNUTLS initialization/cleanup --- diff --git a/src/rpc/virnettlscontext.c b/src/rpc/virnettlscontext.c index 74a61e0783..7440c7a97a 100644 --- a/src/rpc/virnettlscontext.c +++ b/src/rpc/virnettlscontext.c @@ -1423,9 +1423,13 @@ void virNetTLSSessionFree(virNetTLSSessionPtr sess) * virNetTLS* because it initializes * underlying GnuTLS library. According to * it's documentation, it's safe to be called - * many times, but is not thread safe. Each - * call SHOULD be later followed by - * virNetTLSContextDeinit. + * many times, but is not thread safe. + * + * There is no corresponding "Deinit" / "Cleanup" + * function because there is no safe way to call + * 'gnutls_global_deinit' from a multi-threaded + * library, where other libraries linked into the + * application may also be using gnutls. */ void virNetTLSInit(void) {