projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: gcrypt not properly initialized YAZ-740
[yaz-moved-to-github.git]
/
src
/
tcpip.c
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
64942ae
..
0d8eaeb
100644
(file)
--- 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;
static int tcpip_init(void)
{
static int initialized = 0;
+ yaz_init_globals();
if (!initialized)
{
WORD requested;
if (!initialized)
{
WORD requested;
@@
-153,6
+154,7
@@
static int tcpip_init(void)
#else
static int tcpip_init(void)
{
#else
static int tcpip_init(void)
{
+ yaz_init_globals();
return 1;
}
#endif
return 1;
}
#endif
@@
-572,7
+574,6
@@
int tcpip_rcvconnect(COMSTACK h)
#if HAVE_GNUTLS_H
if (h->type == ssl_type && !sp->session)
{
#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);
tcpip_create_cred(h);
gnutls_init(&sp->session, GNUTLS_CLIENT);
gnutls_set_default_priority(sp->session);