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:
442f981
)
Fixed bug #2530: yaz listener broken on Vista.
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 17 Feb 2009 13:11:26 +0000
(14:11 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 17 Feb 2009 13:11:26 +0000
(14:11 +0100)
The two remaining arguments to accept is now NULL ptrs.. The
arguments (for Unix) makes the accept call return an error
about invalid supplied pointers.
src/tcpip.c
patch
|
blob
|
history
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
b1ee8e4
..
ba3853a
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-829,7
+829,11
@@
int tcpip_listen(COMSTACK h, char *raddr, int *addrlen,
h->cerrno = CSOUTSTATE;
return -1;
}
+#ifdef WIN32
+ h->newfd = accept(h->iofile, 0, 0);
+#else
h->newfd = accept(h->iofile, (struct sockaddr*)&addr, &len);
+#endif
if (h->newfd < 0)
{
if (