[jadmin] FreeBSD Ports and jabberd14 (WAS Jabberd and
ICQ transport)
Matthias Wimmer
m at tthias.eu
Sat Sep 2 16:01:10 CDT 2006
Hi Renato!
Renato Botelho schrieb:
> Great to hear it... =)
>
> If you can provide me the patch, I can save the port now, before new
> release comes.
The essential change is the following:
Index: mio.c
===================================================================
--- mio.c (Revision 1291)
+++ mio.c (Revision 1292)
@@ -592,6 +592,13 @@
return NULL;
}
+ /* do not accept a higher fd than FD_SET, or FD_CLR can handle */
+ if (fd >= FD_SETSIZE) {
+ log_warn(NULL, "could not accept incomming connection, maximum
number of connections reached (%i)", FD_SETSIZE);
+ close(fd);
+ return NULL;
+ }
+
#ifdef WITH_IPV6
allow = _mio_allow_check(inet_ntop(AF_INET6, &serv_addr.sin6_addr,
addr_str, sizeof(addr_str)));
deny = _mio_deny_check(addr_str);
Together with some small documentation updates, you can download this as
http://download.jabberd.org/jabberd14/snapshots/jabberd-1.4.4.1-RC1.tar.gz
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4263 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/jadmin/attachments/20060902/d0a7544e/smime-0004.bin
More information about the JAdmin
mailing list