From: Adam Dickmeiss Date: Tue, 17 Feb 2009 13:11:26 +0000 (+0100) Subject: Fixed bug #2530: yaz listener broken on Vista. X-Git-Tag: v3.0.44~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=fee4224d6897ad849d74587d99a1a0f7e137128e;p=yaz-moved-to-github.git Fixed bug #2530: yaz listener broken on Vista. 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. --- diff --git a/src/tcpip.c b/src/tcpip.c index b1ee8e4..ba3853a 100644 --- 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 (