]> jfr.im git - solanum.git/log
solanum.git
9 years agoMerge pull request #73 from Argure/master
William Pitcock [Wed, 5 Nov 2014 10:52:50 +0000 (04:52 -0600)] 
Merge pull request #73 from Argure/master

Explicitly drop SSLv3 connections (SSL_OP_NO_SSLv3) - might break TLS-ca...

9 years agoMerge pull request #75 from attilamolnar/master+nullcharfix
William Pitcock [Wed, 5 Nov 2014 05:26:40 +0000 (23:26 -0600)] 
Merge pull request #75 from attilamolnar/master+nullcharfix

Fix sending null char after ERROR when the server is full

9 years agoFix sending null char after ERROR when the server is full
Attila Molnar [Tue, 4 Nov 2014 20:57:37 +0000 (21:57 +0100)] 
Fix sending null char after ERROR when the server is full

9 years agoExplicitly drop SSLv3 connections (SSL_OP_NO_SSLv3) - might break TLS-capable clients...
Patrick Godschalk [Sun, 26 Oct 2014 12:15:30 +0000 (13:15 +0100)] 
Explicitly drop SSLv3 connections (SSL_OP_NO_SSLv3) - might break TLS-capable clients that still depend on SSLv23 handshake

9 years agoban: Fix build breakage.
Jilles Tjoelker [Sun, 21 Sep 2014 16:28:24 +0000 (18:28 +0200)] 
ban: Fix build breakage.

A normal 'make' did not rebuild m_ban.c even though dependencies had
changed.

9 years agotools: Remove Hybrid 6 conversion tools.
Jilles Tjoelker [Sun, 21 Sep 2014 16:20:26 +0000 (18:20 +0200)] 
tools: Remove Hybrid 6 conversion tools.

Hybrid 6 is old enough that the conversion tools can go away now.
They are for I and K lines; the ircd.conf converter was already removed.

This removes compiler/analyzer warnings about these tools.

9 years agobandb: Don't apply empty ban list when bandb starts sending bans.
Jilles Tjoelker [Sun, 21 Sep 2014 16:03:20 +0000 (18:03 +0200)] 
bandb: Don't apply empty ban list when bandb starts sending bans.

When bandb sends the ban list, it first sends 'C', then all bans and
finally 'F'. Only when 'F' is sent is ircd supposed to apply the bans.
Because of a missing break, 'C' also did 'F', clearing the ircd active
permanent bans until bandb sent 'F'.

The effect is pretty limited because having bandb send the ban list via
/rehash bans is uncommon and most bans will be enforced when reset.

9 years agolibratbox: Add comment that case fallthrough is deliberate.
Jilles Tjoelker [Sun, 21 Sep 2014 15:44:34 +0000 (17:44 +0200)] 
libratbox: Add comment that case fallthrough is deliberate.

9 years agoGitignore vim swap files.
Jilles Tjoelker [Sun, 21 Sep 2014 14:58:06 +0000 (16:58 +0200)] 
Gitignore vim swap files.

9 years agoserver: Don't read beyond the bounds of ServerInfo.ip and ServerInfo.ip6.
Jilles Tjoelker [Sun, 21 Sep 2014 14:56:49 +0000 (16:56 +0200)] 
server: Don't read beyond the bounds of ServerInfo.ip and ServerInfo.ip6.

9 years agoserver: Remove two dead stores.
Jilles Tjoelker [Sun, 21 Sep 2014 13:16:15 +0000 (15:16 +0200)] 
server: Remove two dead stores.

9 years agoExplicitly pass the current time to deactivate_conf().
Jilles Tjoelker [Sun, 21 Sep 2014 13:02:43 +0000 (15:02 +0200)] 
Explicitly pass the current time to deactivate_conf().

Some places depend on the ban not being destroyed.

9 years agoFix crash when there are two blacklist hosts without intervening reason.
Jilles Tjoelker [Sun, 21 Sep 2014 12:41:51 +0000 (14:41 +0200)] 
Fix crash when there are two blacklist hosts without intervening reason.

This is invalid configuration; the first host is supposed to be ignored.

9 years agoMerge pull request #70 from grobe0ba/master
William Pitcock [Tue, 9 Sep 2014 15:19:35 +0000 (10:19 -0500)] 
Merge pull request #70 from grobe0ba/master

Remove incorrect comment regarding location of functions in src/modules.c

9 years agoRemoved comment from src/modules.c that states certain function were moved into a...
Byron Grobe [Tue, 9 Sep 2014 08:13:42 +0000 (08:13 +0000)] 
Removed comment from src/modules.c that states certain function were moved into a file that no longer exists. (Circa ~2002)

9 years agodoc/sasl.txt: forgot to wrap lines and sort references
Mantas Mikulėnas [Mon, 8 Sep 2014 19:37:40 +0000 (22:37 +0300)] 
doc/sasl.txt: forgot to wrap lines and sort references

9 years agodoc/sasl.txt: drop dead links, add links to IRCv3 spec and relevant SASL RFCs
Mantas Mikulėnas [Mon, 8 Sep 2014 19:27:36 +0000 (22:27 +0300)] 
doc/sasl.txt: drop dead links, add links to IRCv3 spec and relevant SASL RFCs

9 years agochmode: Check mlock when a local oper changes cmode +L/+P.
Jilles Tjoelker [Sun, 17 Aug 2014 22:26:38 +0000 (00:26 +0200)] 
chmode: Check mlock when a local oper changes cmode +L/+P.

This check was erroneously removed when fixing /mode #channel f when +f is
mlocked. Mlock checks were restricted to the places requiring chanops
(other than viewing +eI lists); cmode +L/+P do not require chanops, but
still constitute a mode change that must be checked against mlock.

9 years agoBAN: Don't schedule check_klines for 0 seconds in the future.
Keith Buck [Sun, 17 Aug 2014 09:06:01 +0000 (09:06 +0000)] 
BAN: Don't schedule check_klines for 0 seconds in the future.

When receiving bans from a bursting server, if kline_delay is set to 0
(the default), rb_event_addonce will be called to schedule an event for
0 seconds in the future. While this works fine for the fallback
rb_event_run function, the epoll implementation ends up scheduling a
timerfd for the event in the past, which is then never executed.

While fixing this, I also made rb_event_add and rb_event_addonce reject
attempts to add events scheduled for 0 seconds in the future; they're
instead rewritten to run 1 second in the future.

9 years agoUpdate 3.5 NEWS.
Jilles Tjoelker [Fri, 15 Aug 2014 20:38:56 +0000 (22:38 +0200)] 
Update 3.5 NEWS.

9 years agoSJOIN: Fix crash when both mode parameter and UID list are missing.
Jilles Tjoelker [Fri, 15 Aug 2014 15:10:24 +0000 (17:10 +0200)] 
SJOIN: Fix crash when both mode parameter and UID list are missing.

Closes #63

9 years agoconf: Make channel::channel_target_change option actually work.
Jilles Tjoelker [Fri, 8 Aug 2014 09:57:09 +0000 (11:57 +0200)] 
conf: Make channel::channel_target_change option actually work.

Channel target change was forcibly enabled.

10 years agoextensions/extb_channel: Allow the channel itself as target even if +s/+p.
Jilles Tjoelker [Sat, 21 Jun 2014 19:48:37 +0000 (21:48 +0200)] 
extensions/extb_channel: Allow the channel itself as target even if +s/+p.

10 years agoextensions/chm_sslonly: Use some 4xx numeric for the join failure.
Jilles Tjoelker [Thu, 12 Jun 2014 21:30:37 +0000 (23:30 +0200)] 
extensions/chm_sslonly: Use some 4xx numeric for the join failure.

10 years agoMerge pull request #64 from maxanton/fix_path_to_ssl_cert
Rylee Fowler [Sun, 13 Jul 2014 20:31:04 +0000 (16:31 -0400)] 
Merge pull request #64 from maxanton/fix_path_to_ssl_cert

example configs: change ssl_cert to etc/ssl.pem

10 years agoexample configs: change ssl_cert to etc/ssl.pem
Max Teufel [Sun, 13 Jul 2014 16:12:54 +0000 (18:12 +0200)] 
example configs: change ssl_cert to etc/ssl.pem

The genssl script writes to etc/ssl.pem by default.

10 years agosmoketest: Remove race conditions causing occasional test failures.
Jilles Tjoelker [Thu, 12 Jun 2014 21:42:51 +0000 (23:42 +0200)] 
smoketest: Remove race conditions causing occasional test failures.

10 years agoChase change from example.conf to ircd.conf.example in various places.
Jilles Tjoelker [Thu, 12 Jun 2014 21:36:06 +0000 (23:36 +0200)] 
Chase change from example.conf to ircd.conf.example in various places.

10 years agoconfigure: Rerun autoconf.
Jilles Tjoelker [Thu, 5 Jun 2014 20:10:49 +0000 (22:10 +0200)] 
configure: Rerun autoconf.

10 years agoconfigure: Restore libratbox build.
Jilles Tjoelker [Thu, 5 Jun 2014 20:10:10 +0000 (22:10 +0200)] 
configure: Restore libratbox build.

This fixes building from scratch.

10 years agoMerge branch 'master+sharedsqlite' of https://github.com/lstarnes1024/charybdis
Jilles Tjoelker [Tue, 3 Jun 2014 20:40:32 +0000 (22:40 +0200)] 
Merge branch 'master+sharedsqlite' of https://github.com/lstarnes1024/charybdis

10 years agoconfigure: use pkg-config for sqlite
Lee Starnes [Sun, 1 Jun 2014 19:50:01 +0000 (15:50 -0400)] 
configure: use pkg-config for sqlite

10 years agoaclocal.m4: rerun aclocal
Lee Starnes [Sun, 1 Jun 2014 19:44:36 +0000 (15:44 -0400)] 
aclocal.m4: rerun aclocal

10 years agom4/pkg.m4: add pkg-config-0.24 macros
Lee Starnes [Sun, 1 Jun 2014 19:43:55 +0000 (15:43 -0400)] 
m4/pkg.m4: add pkg-config-0.24 macros

10 years agoconfigure: move local autoconf macros to m4/charybdis.m4
Lee Starnes [Sun, 1 Jun 2014 19:40:19 +0000 (15:40 -0400)] 
configure: move local autoconf macros to m4/charybdis.m4

10 years agoconfigure: fix linking with shared sqlite on *BSD
Lee Starnes [Sun, 1 Jun 2014 02:56:12 +0000 (22:56 -0400)] 
configure: fix linking with shared sqlite on *BSD

10 years agoconfigure: use --with-shared-sqlite instead of --enable-shared-sqlite
Lee Starnes [Sun, 1 Jun 2014 01:14:09 +0000 (21:14 -0400)] 
configure: use --with-shared-sqlite instead of --enable-shared-sqlite

10 years agobandb: make Makefile work with BSD make again
Lee Starnes [Thu, 29 May 2014 21:53:43 +0000 (17:53 -0400)] 
bandb: make Makefile work with BSD make again

10 years agoircd_parser: Fix inconsistent declaration of yyerror().
Jilles Tjoelker [Thu, 29 May 2014 21:23:50 +0000 (23:23 +0200)] 
ircd_parser: Fix inconsistent declaration of yyerror().

10 years agoconfigure: add --enable-shared-sqlite option
Lee Starnes [Tue, 27 May 2014 14:39:55 +0000 (10:39 -0400)] 
configure: add --enable-shared-sqlite option

When --enable-shared-sqlite is used, charybdis will be compiled with a shared
sqlite library if it is available.

10 years agochannel: Remove write-only field.
Jilles Tjoelker [Thu, 29 May 2014 14:22:58 +0000 (16:22 +0200)] 
channel: Remove write-only field.

10 years agochannel: Stop pretending to support per-mode server capabilities.
Jilles Tjoelker [Thu, 29 May 2014 14:07:45 +0000 (16:07 +0200)] 
channel: Stop pretending to support per-mode server capabilities.

After a change for dynamic server capabilities, the code to send out mode
changes was changed to use the capabilities belonging to the last mode
being sent out. This does not make sense; therefore, just use no
capabilities and remove supporting infrastructure.

10 years agoserver: Require EX and IE capabilities (+e and +I cmodes).
Jilles Tjoelker [Thu, 29 May 2014 14:13:39 +0000 (16:13 +0200)] 
server: Require EX and IE capabilities (+e and +I cmodes).

The code to send each channel mode only to servers supporting it was
broken a while ago and was not very useful anyway. Therefore, require
all connecting servers to support all standard channel modes.

10 years agoMerge branch 'patch-1' of https://github.com/auscompgeek/charybdis
Jilles Tjoelker [Thu, 29 May 2014 13:42:47 +0000 (15:42 +0200)] 
Merge branch 'patch-1' of https://github.com/auscompgeek/charybdis

10 years agoMerge branch 'master+umodes' of https://github.com/Adam-/charybdis
Jilles Tjoelker [Mon, 19 May 2014 21:37:20 +0000 (23:37 +0200)] 
Merge branch 'master+umodes' of https://github.com/Adam-/charybdis

10 years agoFix buffer overflow in introduce_client and burst_TS6
Adam [Tue, 13 May 2014 23:21:27 +0000 (19:21 -0400)] 
Fix buffer overflow in introduce_client and burst_TS6

If the client being introduced has more than 10 user modes send_umode()
will overflow ubuf

10 years agohelp: Update indexes
Mantas Mikulėnas [Sat, 10 May 2014 12:07:47 +0000 (15:07 +0300)] 
help: Update indexes

`make index` (add PRIVS for opers, CHANTRACE for users)

10 years agohelp: Add MONITOR to the user symlinks
Mantas Mikulėnas [Sat, 10 May 2014 12:04:29 +0000 (15:04 +0300)] 
help: Add MONITOR to the user symlinks

Apparently the overrides are done at `make install` time, okay.

10 years agom_version: remove spaces from version string
Mantas Mikulėnas [Tue, 6 May 2014 13:25:46 +0000 (16:25 +0300)] 
m_version: remove spaces from version string

"to make it machine parseable again", as in ircd-seven commit 03b2176b88a1.

10 years agom_version: display charybdis version in /version
Mantas Mikulėnas [Tue, 6 May 2014 13:21:00 +0000 (16:21 +0300)] 
m_version: display charybdis version in /version

Otherwise it just crashes when /version is used.

Closes: #60
10 years agoinfo: Change N-line to connect block.
Jilles Tjoelker [Sun, 27 Apr 2014 13:33:09 +0000 (15:33 +0200)] 
info: Change N-line to connect block.

10 years agostrip_colour: Strip '\x0F' (^O, formatting off)
auscompgeek [Thu, 17 Apr 2014 03:12:11 +0000 (13:12 +1000)] 
strip_colour: Strip '\x0F' (^O, formatting off)

Reported by ssbr on freenode:

chmode +c doesn't strip ^O, which turns off all previous formatting.
This can cause clients that internally use mIRC formatting to render messages weirdly,
e.g. highlighted messages in HexChat: <https://i.imgur.com/eDX8Aif.png>.

10 years agoexample confs: Remove AHBL blacklists, which are no longer available.
Jilles Tjoelker [Sun, 6 Apr 2014 10:32:44 +0000 (12:32 +0200)] 
example confs: Remove AHBL blacklists, which are no longer available.

10 years agomkpasswd: Prompt for password twice
Alex Iadicicco [Fri, 4 Apr 2014 23:46:44 +0000 (16:46 -0700)] 
mkpasswd: Prompt for password twice

10 years agoFix const qualifier on raw_mask
Douglas Freed [Sun, 26 Jan 2014 10:02:07 +0000 (10:02 +0000)] 
Fix const qualifier on raw_mask

Fixes compilation warning about losing const qualifier in assignment to
non-const variable

(cherry picked from commit 6d9c3f50944e1da3bf3a1be6454f85d6d6f7ab37)

10 years agoFix format string type mismatch in src/capability.c.
Jilles Tjoelker [Sun, 9 Mar 2014 18:11:54 +0000 (19:11 +0100)] 
Fix format string type mismatch in src/capability.c.

The type 'long' was correct on most machines but not according to the C
standard and Windows 64-bit.

10 years agoRestore trailing whitespace in sqlite3 amalgamation.
Jilles Tjoelker [Sun, 9 Mar 2014 16:54:26 +0000 (17:54 +0100)] 
Restore trailing whitespace in sqlite3 amalgamation.

Stripping the whitespace from the upstream-maintained sqlite3 code just
causes merge conflicts with no benefit.

10 years agoFix fd leak if /dev/urandom can be opened but not read.
Jilles Tjoelker [Sun, 9 Mar 2014 13:54:45 +0000 (14:54 +0100)] 
Fix fd leak if /dev/urandom can be opened but not read.

10 years agoAdd first cut at 3.5.0 NEWS. [ci skip]
Jilles Tjoelker [Fri, 7 Mar 2014 22:06:39 +0000 (23:06 +0100)] 
Add first cut at 3.5.0 NEWS. [ci skip]

10 years agoblacklist: Make the snote more like the +c one.
Jilles Tjoelker [Fri, 7 Mar 2014 20:55:43 +0000 (21:55 +0100)] 
blacklist: Make the snote more like the +c one.

10 years agoMerge pull request #53 from ShadowNinja/clarify_U+R
William Pitcock [Thu, 6 Mar 2014 15:59:37 +0000 (09:59 -0600)] 
Merge pull request #53 from ShadowNinja/clarify_U+R

Clarify UMODE +R help text

10 years agoAdd DNSBL snotes for snomask +r.
Keith Buck [Wed, 5 Mar 2014 08:12:22 +0000 (08:12 +0000)] 
Add DNSBL snotes for snomask +r.

10 years agoRemove snotes on +r about GET/PUT/POST commands.
Jilles Tjoelker [Tue, 4 Mar 2014 22:02:40 +0000 (23:02 +0100)] 
Remove snotes on +r about GET/PUT/POST commands.

The server notice "HTTP Proxy disconnected: [<user>@<host>]" is
confusing and not particularly useful.

10 years agoRemove trailing whitespace from all .c and .h files.
Keith Buck [Mon, 3 Mar 2014 04:25:47 +0000 (04:25 +0000)] 
Remove trailing whitespace from all .c and .h files.

3134 bytes were removed.

10 years agos_conf: Don't leak log file paths when loading default conf
Keith Buck [Mon, 3 Mar 2014 04:12:07 +0000 (04:12 +0000)] 
s_conf: Don't leak log file paths when loading default conf

This change prevents the log file paths from being leaked when
rehashing. Additionally, fname_killlog was added to two places where it
was previously forgotten.

10 years agos_conf: Don't leak strings when loading default conf
Keith Buck [Mon, 3 Mar 2014 03:58:40 +0000 (03:58 +0000)] 
s_conf: Don't leak strings when loading default conf

This change prevents conf strings from being leaked when resetting the
conf to default prior to a rehash. Additionally, some default strings
are now rb_strdup'd into the ConfigFileEntry structure after loading the
conf so that they aren't allocated and then immediately freed by the
conf loading process.

10 years agolibratbox openssl: Don't leak EC_KEY structures.
Keith Buck [Sun, 2 Mar 2014 23:56:20 +0000 (23:56 +0000)] 
libratbox openssl: Don't leak EC_KEY structures.

10 years agonewconf.c: Remove end-of-line whitespace.
Keith Buck [Sun, 2 Mar 2014 23:34:32 +0000 (23:34 +0000)] 
newconf.c: Remove end-of-line whitespace.

10 years agoconf parsing: Fix freeing section names upon section end.
Keith Buck [Sun, 2 Mar 2014 23:31:13 +0000 (23:31 +0000)] 
conf parsing: Fix freeing section names upon section end.

10 years agoAvoid possible null dereference.
Jilles Tjoelker [Sun, 2 Mar 2014 23:01:56 +0000 (00:01 +0100)] 
Avoid possible null dereference.

10 years agoFix a couple more string leaks.
Keith Buck [Sun, 2 Mar 2014 22:05:30 +0000 (22:05 +0000)] 
Fix a couple more string leaks.

10 years agocommio: Properly zero a struct msghdr.
Jilles Tjoelker [Sun, 2 Mar 2014 21:12:19 +0000 (22:12 +0100)] 
commio: Properly zero a struct msghdr.

This bug is probably not noticeable because all specified fields are
initialized later.

10 years agocommio: Explicitly ignore return value from setsockopt(TCP_DEFER_ACCEPT).
Jilles Tjoelker [Sun, 2 Mar 2014 21:09:08 +0000 (22:09 +0100)] 
commio: Explicitly ignore return value from setsockopt(TCP_DEFER_ACCEPT).

10 years agosslproc: Add missing break, still allowing zlib when ssl cannot be set up.
Jilles Tjoelker [Sun, 2 Mar 2014 20:58:38 +0000 (21:58 +0100)] 
sslproc: Add missing break, still allowing zlib when ssl cannot be set up.

10 years agolog_client_name: Remove MASK_IP case.
Jilles Tjoelker [Sun, 2 Mar 2014 20:54:29 +0000 (21:54 +0100)] 
log_client_name: Remove MASK_IP case.

The MASK_IP case in log_client_name() was broken (because of a missing
break, it behaved as HIDE_IP). However, log_client_name() with MASK_IP
does not make sense anyway and is not used.

10 years agofindforwards: Don't compare array to NULL as this is always true.
Jilles Tjoelker [Sun, 2 Mar 2014 20:47:36 +0000 (21:47 +0100)] 
findforwards: Don't compare array to NULL as this is always true.

10 years agolistener: Move error messages to something visible by default.
Jilles Tjoelker [Sat, 1 Mar 2014 18:05:55 +0000 (19:05 +0100)] 
listener: Move error messages to something visible by default.

If a listening port cannot be opened, send error messages to opers with
snomask +s and ircd.log, instead of snomask +d and the ioerror log, which
both are usually disabled.

Also, restore information about what listener is having problems. This
was lost when report_error() was replaced.

10 years agodoc/extban: Correct description of EXTBAN token in 005.
Jilles Tjoelker [Sat, 1 Mar 2014 17:16:40 +0000 (18:16 +0100)] 
doc/extban: Correct description of EXTBAN token in 005.

The change from EXTBAN=$:<types> to EXTBAN=$,<types> was made later on
and the documentation was not adjusted.

10 years agoconf parsing: Fix memory leaks and clean up code a bit.
Keith Buck [Fri, 28 Feb 2014 07:02:49 +0000 (07:02 +0000)] 
conf parsing: Fix memory leaks and clean up code a bit.

Charybdis currently leaks about 45-50k per configuration parse,
including every rehash. This change plugs these leaks by properly
iterating through all conf_parm_t structures to seek all strings that
should be freed and also by freeing the conf_parm_t structures
themselves.

These leaks have been present since the original rewrite of the
configuration parsing system in ircd-ratbox r11953.

Additionally, this change also cleans up and documents the parsing code
a bit.

10 years agoircd_parser: Fix whitespace errors.
Jilles Tjoelker [Fri, 28 Feb 2014 14:51:52 +0000 (15:51 +0100)] 
ircd_parser: Fix whitespace errors.

10 years agoSIGNON: Do not send uninitialized data if login name starts with '*'.
Jilles Tjoelker [Fri, 28 Feb 2014 14:48:07 +0000 (15:48 +0100)] 
SIGNON: Do not send uninitialized data if login name starts with '*'.

10 years agolibratbox: Abort if the restart callback returns.
Jilles Tjoelker [Thu, 27 Feb 2014 23:53:13 +0000 (00:53 +0100)] 
libratbox: Abort if the restart callback returns.

10 years agostats c: Simplify construction of flags string.
Jilles Tjoelker [Sun, 23 Feb 2014 23:10:42 +0000 (00:10 +0100)] 
stats c: Simplify construction of flags string.

Perhaps this avoids false positives in static analysis.

10 years agocommio: Add error string for SSL trouble.
Jilles Tjoelker [Sun, 23 Feb 2014 23:06:19 +0000 (00:06 +0100)] 
commio: Add error string for SSL trouble.

10 years agoserver: Use rb_strlcpy() instead of strcpy().
Jilles Tjoelker [Sun, 23 Feb 2014 23:04:11 +0000 (00:04 +0100)] 
server: Use rb_strlcpy() instead of strcpy().

An overflow should be impossible here, but be paranoid.

10 years agoSimplify module path list, removing strcpy use.
Jilles Tjoelker [Sun, 23 Feb 2014 22:47:27 +0000 (23:47 +0100)] 
Simplify module path list, removing strcpy use.

10 years agoFix use after free.
Jilles Tjoelker [Sun, 23 Feb 2014 22:46:57 +0000 (23:46 +0100)] 
Fix use after free.

10 years agoconf: Remove dead store.
Jilles Tjoelker [Sun, 23 Feb 2014 22:04:52 +0000 (23:04 +0100)] 
conf: Remove dead store.

10 years agoFix various printf arg types.
Jilles Tjoelker [Sun, 23 Feb 2014 21:46:06 +0000 (22:46 +0100)] 
Fix various printf arg types.

10 years agopart: Fix constness issue with part hook.
Jilles Tjoelker [Sun, 23 Feb 2014 21:55:22 +0000 (22:55 +0100)] 
part: Fix constness issue with part hook.

10 years agomodlist: Fix address display on 64-bit systems.
Jilles Tjoelker [Sun, 23 Feb 2014 21:42:51 +0000 (22:42 +0100)] 
modlist: Fix address display on 64-bit systems.

10 years agomodules: Fix bad sizeofs.
Jilles Tjoelker [Sun, 23 Feb 2014 21:39:42 +0000 (22:39 +0100)] 
modules: Fix bad sizeofs.

10 years agoReplace double semicolons with single; place null statement on its own line.
Jilles Tjoelker [Sun, 23 Feb 2014 21:23:00 +0000 (22:23 +0100)] 
Replace double semicolons with single; place null statement on its own line.

No functional change is intended.

10 years agoconf: Do not leak memory when modules::module is already loaded.
Jilles Tjoelker [Sun, 23 Feb 2014 21:20:43 +0000 (22:20 +0100)] 
conf: Do not leak memory when modules::module is already loaded.

10 years agoextensions/mkpasswd: Do not leak /dev/random fd.
Jilles Tjoelker [Sun, 23 Feb 2014 21:18:44 +0000 (22:18 +0100)] 
extensions/mkpasswd: Do not leak /dev/random fd.

10 years agoballoc: Fix memory leak when get_block() fails.
Jilles Tjoelker [Sun, 23 Feb 2014 21:14:47 +0000 (22:14 +0100)] 
balloc: Fix memory leak when get_block() fails.

10 years agobantool: Close .conf files when done reading.
Jilles Tjoelker [Sun, 23 Feb 2014 21:10:34 +0000 (22:10 +0100)] 
bantool: Close .conf files when done reading.

Not very many files are read, so leaving them open is not a major issue.

10 years agoextensions/roleplay: Fix memory leak on every use.
Jilles Tjoelker [Sun, 23 Feb 2014 21:01:04 +0000 (22:01 +0100)] 
extensions/roleplay: Fix memory leak on every use.

10 years agostartup: Check return value of open /dev/null. Don't fclose stdin/stdout/stderr.
Jilles Tjoelker [Sun, 23 Feb 2014 20:51:19 +0000 (21:51 +0100)] 
startup: Check return value of open /dev/null. Don't fclose stdin/stdout/stderr.

Open /dev/null for standard fds earlier, so a failure can be reported.
Do not fclose stdin/stdout/stderr but just overwrite the fds with
/dev/null.

10 years agowebirc: Check validity of given IP.
Jilles Tjoelker [Sun, 23 Feb 2014 20:14:09 +0000 (21:14 +0100)] 
webirc: Check validity of given IP.