Commits
- Commit:
bb6e2779636aa6d74bbff474880829f0183a3c94
- From:
- Alexander Barton <alex@barton.de>
- Date:
ngIRCd Release 20.3
- Commit:
d24df64397015732bc6cc1c36a4710fc4db271f1
- From:
- Alexander Barton <alex@barton.de>
- Date:
Correctly handle return code of Handle_Write()
There have been code paths that ignored the return code of Handle_Write()
when sending "notice auth" messages to new clients connecting to the
server. But because Handle_Write() would have closed the client connection
again if an error occurred, this would have resulted in new errors and
assert()'s later on that could have crashed the server (denial of service).
Only setups having the configuration option "NoticeAuth" enabled are
affected, which is not the default.
CVE-2013-5580.
(cherry picked from commit 309122017ebc6fff039a7cab1b82f632853d82d5)
- Commit:
c45d9dd1f08fddb95fa01d62c69848cd753a3161
- From:
- Alexander Barton <alex@barton.de>
- Date:
ngIRCd Release 20.2
- Commit:
b3d4cf9081fc32df969760b5b58a21954a27d073
- From:
- Sebastian Köhler <sebkoehler@whoami.org.uk>
- Via:
- Alexander Barton <alex@barton.de>
- Date:
KICK: Fix denial of service bug
Test if the user that it is to be kicked is on the channel before user
channel modes are tested. Otherwise assert( cl2chan != NULL ); in
line 742 would fail and stop the service.
(cherry picked from commit 0e63fb3fa7ac4ca048e8c2b648d2be3fd0572311)
- Commit:
1265eb15b8b3eae1a25906daaa4e38de3feb3f16
- From:
- Alexander Barton <alex@barton.de>
- Date:
"WHO <hostmask>": use displayed hostname for matching
Use the currently "displayed hostname" (which can be cloaked!) for
hostname matching, not the real one. In other words: don't display
all the cloaked users on a specific real hostname!
Thanks to DNS <dns@rbose.org> for reporting this issue.
(cherry picked from commit 1e8b775a7a6d0c390e037bd73332072e7c510525)
- Commit:
84612fe773ee57d57822107bb65671def135db30
- From:
- Alexander Barton <alex@barton.de>
- Date:
autogen.sh: Don't use "egrep -o", use "sed"
"egrep -o" isn't portable and not available on OpenBSD, for example. So
let's use sed instead to get the automake version. The expression used
now is less specific but should work as well ...
(cherry picked from commit 419ff38a07cb0b1637b444c96cd6868a7a9e5524)
- Commit:
84f5839c174e25af57f8d082cbbe8a603501dcaa
- From:
- Alexander Barton <alex@barton.de>
- Date:
configure: "netinet/in_systm.h" is optional
The header file "netinet/in_systm.h" already is optional in ngIRCd, so
don't require it in the configure script. Now ngIRCd can be built on
Minix 3 again :-)
(cherry picked from commit fd260404caa7ce174ada663024d19cd789c152b5)
- Commit:
cb3b411166384da9460da69d242d350249e15f3a
- From:
- Alexander Barton <alex@barton.de>
- Date:
Return better "Connection not registered as server link" errors
Now ngIRCd returns a more specific error message for numeric
ERR_NOTREGISTERED(451) when a regular user tries to use a command that
isn't allowed for users but for servers: ERR_NOTREGISTEREDSERVER(451).
(cherry picked from commit 508ca3044dd6d1a88686efceda92a7f2a9b4a926)
- Commit:
121bcacb9889bb6318a508586f364647500a64e3
- From:
- Alexander Barton <alex@barton.de>
- Date:
MODE: don't report error on "more modes than parameters"
Don't report ERR_NEEDMOREPARAMS(461) when a MDOE command with more modes
than nicknames is handled, as well as for channel limit and key changes
without specifying the limit or key parameters.
This is how a lot (all?) other IRC servers behave, including ircd2.11,
InspIRCd, and ircd-seven. And because of clients (tested with Textual and
mIRC) sending bogus MODE commands like "MODE -ooo nick", end-users got the
expected result as well as correct but misleading error messages ...
If ngIRCd is compiled using "strict mode", these errors are still reported.
Reported-by: Tim <tim@stackwatch.net>
(cherry picked from commit d8f2964710985597281de73aecd0a1ece30ecb03)
- Commit:
4105635566b3b2d8bd56f0ce1e556d5c3642f319
- From:
- Alexander Barton <alex@barton.de>
- Date:
Correctly detect when SSL subsystem must be initialized
This patch introduces the new function Conf_SSLInUse() to check when the
current server configuration requires the SSL subsystem to be initialized
and accounts incoming as well as outgoing connections -- so this fixes
commit bb20aeb9 ("Initialize SSL when needed only, and disable SSL on
errors") which only handled the inbound case ...
Tested-by: Brett Smith <brett@w3.org>
(cherry picked from commit ab009976984ede815c31c9a6b318c80006823b81)
- Commit:
90fce2ed16fbfd5e6e37acfae997d756b426a347
- From:
- Alexander Barton <alex@barton.de>
- Date:
autogen.sh: Enforce serial test harness on automake >=1.13
(cherry picked from commit 0703fcd71983bd04f70101fd0143660174d22f84)
- Commit:
21493731dffa0f5d9f62d24cdef290be6a6856fd
- From:
- Alexander Barton <alex@barton.de>
- Date:
ngIRCd Release 20.1
- Commit:
1f59821270e7298b380183778672e6db9c87971b
- From:
- Alexander Barton <alex@barton.de>
- Date:
Update Copyright notices for 2013
- Commit:
3e47bc9af511716bbe388f0a29b5fdbb617cee4c
- From:
- Alexander Barton <alex@barton.de>
- Date:
Allow ERROR command on server and service links only
Ignore it and add a penalty time on all other link types.
- Commit:
5d921984873b708c2f91bed01689f6351d95c233
- From:
- Alexander Barton <alex@barton.de>
- Date:
Get rid of Conn_ResetPenalty(), it is unused
- Commit:
20ddffca0d5ae5393adc57b67ba90e15d33e2ee3
- From:
- Alexander Barton <alex@barton.de>
- Date:
Mode setting: only check channel user modes when on channel
Only check the channel user modes of the initiator if he is joined to
this channel and not an IRC operator enforcing modes (which requires
the configuration option "OperCanUseMode" to be enabled), because trying
to check channel user modes of a non-member results in this assertion:
Assertion failed: (cl2chan != NULL), function Channel_UserModes,
file channel.c, line 742.
This closes bug #147, thanks to James Kirwill <james.kirwill@bk.ru>
for tracking this down!
- Commit:
25e56a5e837173a567a0873bd5a9ccc126cff333
- From:
- Alexander Barton <alex@barton.de>
- Date:
Add some more casts in assert() statemens
This fixes the following warning messages of gcc 4.5.3 on Cygwin when
building with debug code enabled:
ng_ipaddr.c: In function ‘ng_ipaddr_init’:
ng_ipaddr.c:52:2: warning: comparison between signed and
unsigned integer expressions
ng_ipaddr.c:53:20: warning: comparison between signed and
unsigned integer expressions
resolve.c: In function ‘ForwardLookup’:
resolve.c:271:3: warning: comparison between signed and
unsigned integer expressions
- Commit:
1e5a7aac877f2b5d105d8cb291b107217b140632
- From:
- Alexander Barton <alex@barton.de>
- Date:
Makefiles: Correctly quote sed expressions
Now the Makefiles support spaces in "$sysconfdir", which isn't uncommon
for Cygwin for example, when $HOME contains whitespaces ("/home/User Name")
and ngIRCd is installed into the user home ("./configure --prefix=$HOME").
- Commit:
b5b3dd9cfd7e1a10eecc92c8b23bd65945b61a31
- From:
- Alexander Barton <alex@barton.de>
- Date:
Add Cygwin binaries (*.exe) to .gitignore files
- Commit:
92fba63ad88e0a3260c75468fb3407fae7074dc6
- From:
- Alexander Barton <alex@barton.de>
- Date:
Add a cast in ForwardLookup() to fix a gcc warning on Cygwin
This fixes the following warning message of 4.5.3 on Cygwin:
resolve.c: In function ‘ForwardLookup’:
resolve.c:273:21: warning: comparison between signed and
unsigned integer expressions
- Commit:
25d35dd6f4e3f116e22c87533b4e2d2a372e847c
- From:
- Alexander Barton <alex@barton.de>
- Date:
ngIRCd Release 20
- Commit:
a445abc10eeaaf3a082188e13332fb1e2eba897e
- From:
- Alexander Barton <alex@barton.de>
- Date:
Update NEWS and ChangeLog files
- Commit:
1342f78b0901b33c4b8a63b7676b6c5e98f19760
- From:
- Alexander Barton <alex@barton.de>
- Date:
Allow user names up to 20 characters
This patch allows user names up to 20 characters when ngIRCd has not been
configured for "strict RFC mode".
Patch suggested by Brett Smith <brett@w3.org>, see
<http://arthur.barton.de/pipermail/ngircd-ml/2012-October/000579.html>.
- Commit:
a0d57a6afd6d9e97388e8336762a3359fa4d80b5
- From:
- Alexander Barton <alex@barton.de>
- Date:
ngIRCd 20~rc2
- Commit:
c6ae353756d833a5c7392f5a1892c9338b7d3dce
- From:
- Alexander Barton <alex@barton.de>
- Date:
Update NEWS and ChangeLog files