X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ftcpip.c;h=0d8eaebbcf4969fdfdee50e0a7f6a03f24a6aff9;hb=ebcb0cd09361a4b814ad8b7e629938c474af0be2;hp=64942aeee390622b10c194388a5bc8a853f78877;hpb=5a0398df33ef2f0ed66ef4703c13b3edae754bae;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index 64942ae..0d8eaeb 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -138,6 +138,7 @@ typedef struct tcpip_state static int tcpip_init(void) { static int initialized = 0; + yaz_init_globals(); if (!initialized) { WORD requested; @@ -153,6 +154,7 @@ static int tcpip_init(void) #else static int tcpip_init(void) { + yaz_init_globals(); return 1; } #endif @@ -572,7 +574,6 @@ int tcpip_rcvconnect(COMSTACK h) #if HAVE_GNUTLS_H if (h->type == ssl_type && !sp->session) { - gnutls_global_init(); tcpip_create_cred(h); gnutls_init(&sp->session, GNUTLS_CLIENT); gnutls_set_default_priority(sp->session);