projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62dc87f
)
Fix-uninit var in new non-blocking getaddrinfo bug
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 28 Feb 2014 18:57:40 +0000
(19:57 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 28 Feb 2014 18:57:40 +0000
(19:57 +0100)
This bug was not part of a public release.
src/tcpip.c
patch
|
blob
|
history
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
4c03281
..
8df6a40
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-945,6
+945,11
@@
COMSTACK tcpip_accept(COMSTACK h)
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;