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 (from parent 1:
4519f45
)
Minor fix.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 29 Jun 1998 07:59:17 +0000
(07:59 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 29 Jun 1998 07:59:17 +0000
(07:59 +0000)
comstack/tcpip.c
patch
|
blob
|
history
diff --git
a/comstack/tcpip.c
b/comstack/tcpip.c
index
36cc696
..
f65f2da
100644
(file)
--- a/
comstack/tcpip.c
+++ b/
comstack/tcpip.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: tcpip.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: tcpip.c,v $
- * Revision 1.23 1998-06-23 15:37:50 adam
+ * Revision 1.24 1998-06-29 07:59:17 adam
+ * Minor fix.
+ *
+ * Revision 1.23 1998/06/23 15:37:50 adam
* Added type cast to prevent warning.
*
* Revision 1.22 1998/06/22 11:32:36 adam
* Added type cast to prevent warning.
*
* Revision 1.22 1998/06/22 11:32:36 adam
@@
-463,16
+466,17
@@
int tcpip_listen(COMSTACK h, char *raddr, int *addrlen,
memcpy(raddr, &addr, *addrlen = sizeof(struct sockaddr_in));
else if (addrlen)
*addrlen = 0;
memcpy(raddr, &addr, *addrlen = sizeof(struct sockaddr_in));
else if (addrlen)
*addrlen = 0;
-
-#if 1
if (check_ip && (*check_ip)(cd, (const char *) &addr.sin_addr,
sizeof(addr.sin_addr), AF_INET))
{
h->cerrno = CSDENY;
if (check_ip && (*check_ip)(cd, (const char *) &addr.sin_addr,
sizeof(addr.sin_addr), AF_INET))
{
h->cerrno = CSDENY;
- close (h->newfd);
+#ifdef WINDOWS
+ closesocket(h->iofile);
+#else
+ close(h->iofile);
+#endif
return -1;
}
return -1;
}
-#endif
h->state = CS_INCON;
return 0;
}
h->state = CS_INCON;
return 0;
}