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
tcpip: initialize ai_connect
[yaz-moved-to-github.git]
/
src
/
tcpip.c
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
52d9de7
..
ac0001e
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-206,6
+206,7
@@
COMSTACK tcpip_type(int s, int flags, int protocol, void *vp)
#if HAVE_GETADDRINFO
sp->ai = 0;
#if HAVE_GETADDRINFO
sp->ai = 0;
+ sp->ai_connect = 0;
#endif
sp->altbuf = 0;
sp->altsize = sp->altlen = 0;
#endif
sp->altbuf = 0;
sp->altsize = sp->altlen = 0;
@@
-654,10
+655,7
@@
static int tcpip_bind(COMSTACK h, void *address, int mode)
if (h->type == ssl_type && !sp->session)
{
int res;
if (h->type == ssl_type && !sp->session)
{
int res;
- gnutls_global_init();
-
tcpip_create_cred(h);
tcpip_create_cred(h);
-
res = gnutls_certificate_set_x509_key_file(sp->cred_ptr->xcred,
sp->cert_fname,
sp->cert_fname,
res = gnutls_certificate_set_x509_key_file(sp->cred_ptr->xcred,
sp->cert_fname,
sp->cert_fname,