From fee4224d6897ad849d74587d99a1a0f7e137128e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 17 Feb 2009 14:11:26 +0100 Subject: [PATCH] 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. --- src/tcpip.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ( -- 1.7.10.4