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-uninit var in new non-blocking getaddrinfo bug
[yaz-moved-to-github.git]
/
src
/
tcpip.c
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
bc5c6ad
..
8df6a40
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-682,9
+682,7
@@
int tcpip_connect(COMSTACK h, void *address)
*/
int tcpip_rcvconnect(COMSTACK h)
{
*/
int tcpip_rcvconnect(COMSTACK h)
{
-#if HAVE_GNUTLS_H
tcpip_state *sp = (tcpip_state *)h->cprivate;
tcpip_state *sp = (tcpip_state *)h->cprivate;
-#endif
TRC(fprintf(stderr, "tcpip_rcvconnect\n"));
if (h->state == CS_ST_DATAXFER)
TRC(fprintf(stderr, "tcpip_rcvconnect\n"));
if (h->state == CS_ST_DATAXFER)
@@
-947,6
+945,11
@@
COMSTACK tcpip_accept(COMSTACK h)
state->complete = st->complete;
#if HAVE_GETADDRINFO
state->ai = 0;
state->complete = st->complete;
#if HAVE_GETADDRINFO
state->ai = 0;
+#if RESOLVER_THREAD
+ state->hoststr = 0;
+ state->pipefd[0] = state->pipefd[1] = -1;
+ state->port = 0;
+#endif
#endif
cnew->state = CS_ST_ACCEPT;
h->state = CS_ST_IDLE;
#endif
cnew->state = CS_ST_ACCEPT;
h->state = CS_ST_IDLE;