malformed ip causes ircd to crash
Running ircd standalone.
Jun 8 08:11:29 bbs ircd[4150972]: [eotlbbs.synchro.net<-rampage]: PING LAG1623107889547589 Jun 8 08:11:29 bbs ircd[4150972]: [eotlbbs.synchro.net->rampage]: PONG eotlbbs.synchro.net :LAG1623107889547589 Jun 8 08:11:44 bbs ircd[4150972]: [eotlbbs.synchro.net<-nelgin]: ISON jtbane Jun 8 08:11:44 bbs ircd[4150972]: [eotlbbs.synchro.net->nelgin]: 303 nelgin Jun 8 08:11:44 bbs ircd[4150972]: Accepting new connection on port 6667 Jun 8 08:11:44 bbs ircd[4150972]: 0022 Accepted new connection: <unknown address family: 0> port 0 Jun 8 08:11:44 bbs ircd[4150972]: [UNREG] Resolving IP: <unknown address family: 0> Jun 8 08:11:44 bbs ircd[4150972]: !JavaScript /sbbs/exec/load/dns.js line 764: Error: Malformed IP address <unknown address family: 0>
Further more, when this happens ircd is unable to restart:
Jun 8 08:11:45 bbs ircd[4150972]: Re-running: /sbbs/exec/ircd.js Jun 8 08:11:45 bbs ircd[4150972]: SynchronetIRCd-1.9b started. Jun 8 08:11:45 bbs ircd[4150972]: Trying to read configuration from: /sbbs/ctrl/ircd.conf Jun 8 08:11:45 bbs ircd[4150972]: Creating new socket object on port 6667 Jun 8 08:11:45 bbs ircd[4150972]: 0017 !ERROR 98 binding IRCd socket to port 6667: Address already in use Jun 8 08:11:45 bbs ircd[4150972]: !Error Error: Unable to add host to socket set creating listening socket on port 6667
I'm getting about 6-7 of these per second which fills the logfiles pretty quick if I don't catch it.