Bram Matthys
f9db29b768
Smart.. moving code to a separate function resulting in the use
...
of sizeof() on a char *...
2019-03-24 07:48:08 +01:00
Bram Matthys
cb60bf286d
Get rid of this useless DLLFUNC junk. This is only needed for symbols
...
that need to be visible from the outside of the .DLL (symbol export).
Long story short: you never need to use this yourself in a module.
Where needed it is already handled by UnrealIRCd.
2019-03-23 19:53:12 +01:00
Bram Matthys
edfc832aa8
Some minor code cleanups, use CMD_FUNC() where possible.
2019-03-23 19:45:34 +01:00
Bram Matthys
7bcf419eda
Add references to the technical S2S documentation
...
@skip-ci
2019-03-23 19:39:56 +01:00
Bram Matthys
e4ddc80c2a
Code cleanup: m_protoctl. Has always been ugly, just was never bothered
...
enough to clean it up. Also, remove PROTOCTL -<option> support, which is
not used by anything and was only supported on a handful of options
anyway. Also remove some debugging and PROTOCTL_MADNESS.
Finally, add a reference to the technical documentation.
2019-03-23 19:23:10 +01:00
Bram Matthys
a11ee2b1a2
Skip * in PROTOCTL SERVERS=. This probably caused a bug which could be
...
triggered by doing quick server connects (crossing requests), something
that the PROTOCTL SERVERS= code is supposed to prevent (it should be
safe to connect to X servers at the same time, even every second).
2019-03-23 19:04:59 +01:00
Bram Matthys
5992a759f7
return 0..
2019-03-23 18:44:00 +01:00
Bram Matthys
ab50bf2afc
Communicate server featureset (and changes) across server links.
...
Previously various information was only available for directly attached
servers, since it is communicated via PROTOCTL.
Now, we will also communicate information about leafs behind us.
IRCOps can use the /SINFO command to see these server features.
Services codes don't need to do anything, or at least are not expected
to do anything. They can still receive the information and do something
with it, of course...
Read the following technical documentation for full information,
as it will outline very specific rules for using the command S2S:
https://www.unrealircd.org/docs/Server_protocol:SINFO_command
2019-03-23 17:56:59 +01:00
Bram Matthys
335a7569bb
Bugs like this can keep you occupied for a while:
...
safestrdup(somevar, s+10);
..always caused somevar to be NULL :D.
2019-03-17 20:16:21 +01:00
Bram Matthys
7ad6b15e92
It would be nice if expired TKL's actually get removed (duh).
...
Caused by fac1e30b91 from March 3, 2019.
2019-03-15 16:34:30 +01:00
Bram Matthys
761ae02935
Change assert() to if..!...abort() so it produces proper core dumps.
...
Yeah, that's how it works, unfortunately.
2019-03-15 16:03:48 +01:00
Bram Matthys
fd73739847
Handle SSL_ERROR_WANT_READ in a better way.
2019-03-10 15:00:45 +01:00
Bram Matthys
872830bdf2
I give up. Test framework will no longer run on Travis-CI, ruby is broken.
2019-03-09 15:38:08 +01:00
Bram Matthys
b396dc3c20
..
2019-03-09 15:33:31 +01:00
Bram Matthys
f47dc78418
.
2019-03-09 15:31:48 +01:00
Bram Matthys
2c114d458e
...............................
2019-03-09 15:27:46 +01:00
Bram Matthys
f039e08f0b
Travis-CI + ruby = ....
2019-03-09 15:17:31 +01:00
Bram Matthys
e0a4e7fe71
Travis-CI: :/
2019-03-09 15:05:47 +01:00
Bram Matthys
2e79c34c11
Travis-CI: more diagnostics
2019-03-09 11:59:33 +01:00
Bram Matthys
99b379fca8
Travis-CI: :(
2019-03-09 11:47:18 +01:00
Bram Matthys
584f3e9d6d
Travis-CI: argh argh
2019-03-09 11:32:27 +01:00
Bram Matthys
20550981f8
Travis-CI: argh!
2019-03-09 11:12:55 +01:00
Bram Matthys
5d69fe9d93
Missing return NULL in find_tkline_match_zap_matcher (due to commit from
...
a few days ago)
2019-03-09 10:23:19 +01:00
Bram Matthys
ad063ba36a
Fix ./unrealircd spkifp complaining that it could not find the certificate
...
file if you specified a relative path. Until now only absolute paths worked.
Bug reported by CrazyCat.
2019-03-08 09:32:05 +01:00
Bram Matthys
fac1e30b91
Major TKL speed improvements.
2019-03-03 20:25:05 +01:00
Bram Matthys
87c81e7e9f
This fsync() call slows things down too much at high connection rates.
2019-03-03 19:03:05 +01:00
Bram Matthys
41c1f01011
Bump version to 4.2.3-dev to make clear that this git version is under development.
2019-03-03 17:14:09 +01:00
Bram Matthys
16659de0b2
Changing set::anti-flood::invite-flood had no effect. It was always 4:60.
...
Reported by Betaman2k in https://bugs.unrealircd.org/view.php?id=5222
2019-03-03 14:16:49 +01:00
Bram Matthys
766055d5c0
Fix set::ban-setter and set::topic-setter being set to nick-user-host
...
out of the blue. The classic C mistake where = instead of == was written
in an if statement... duh.
2019-03-02 08:49:47 +01:00
Bram Matthys
de1548de73
UnrealIRCd 4.2.2.
2019-03-01 14:38:44 +01:00
Bram Matthys
f599ea02cb
WHO(X) auto-conversion bug regarding 'a' and 'c' which no longer exist
...
in WHOX.
2019-03-01 14:34:43 +01:00
Bram Matthys
d068cd41ca
Fix crash in websocket module.
2019-03-01 14:10:06 +01:00
Bram Matthys
d7e5ff82f0
Update curl-ca-bundle.crt (Wed Jan 23 04:12:09 2019 GMT)
2019-03-01 13:57:35 +01:00
Bram Matthys
e16e2b36d8
UnrealIRCd 4.2.2-rc2
2019-02-11 09:19:38 +01:00
Bram Matthys
c6f01aa3f1
Protect 2 more commands against rogue server to server traffic.
2019-02-11 08:47:51 +01:00
Bram Matthys
294560f944
KILL: Not sure if this fixes anything but at least it's less cryptic.
2019-02-10 17:30:39 +01:00
Bram Matthys
9a0bd31cf8
Fix unlikely crash if you had a spamfilter targetting away that was
...
only local (so in .conf) and it hit a remote user.
Also, re-indent this monster...
2019-02-10 17:09:48 +01:00
Bram Matthys
1dbef111fb
Fix crash if receiving malformed server to server traffic (from an
...
authenticated server): TKL deleting a spamfilter with insufficient
parameters.
2019-02-10 17:08:47 +01:00
Bram Matthys
1f03dbdd05
CHGNAME and SETNAME: if a remote user used a realname that was banned
...
on this server then we could possibly crash. (Fortunately most networks
use the same ban realname blocks on all their servers)
2019-02-10 14:54:28 +01:00
Bram Matthys
3712fad891
When a server does not use SID's, set empty id as before.
...
This bug was post-rc1, caused by dde8f914fb .
2019-02-10 14:48:29 +01:00
Bram Matthys
7e444d3b9f
Fix SJOIN bug in rc1: was using an incorrect buffer when SJSBY was
...
not used, such as in a mixed version scenario.
2019-02-10 14:43:34 +01:00
Bram Matthys
77d3e844dc
Fix a bunch of REHASH memory leaks.
2019-02-10 10:36:20 +01:00
Bram Matthys
7d5c3a1b68
Fix hang/crash due to commit from yesterday, reported by k4be.
...
(cause: dde8f914fb )
2019-02-10 09:56:53 +01:00
Bram Matthys
c7f00edd9d
Quicker handshake when using many CAP requests and/or AUTHENTICATE.
...
I was wondering why the handshake took 4 seconds for a client which
authenticates using SASL. Turns out that fake lag was kicking in due
to the many "CAP req" commands combined with the other handshake stuff.
Now the first 15 (or so) "CAP" requests are "free", without fake lag.
2019-02-09 16:47:24 +01:00
Bram Matthys
78cd122a05
Allow SASL post-registration. Unfortunately the anope unreal4 protocol
...
module also requires an update to support this.
2019-02-09 14:39:34 +01:00
Bram Matthys
dde8f914fb
Internal: make UID available early (pre-auth).
2019-02-09 14:35:48 +01:00
Bram Matthys
a740570710
Fix crash bug (in rc1 only) if ::ssl-options are being used and the
...
outdated SSL protocols/ciphers are being checked.
2019-02-08 12:02:52 +01:00
Bram Matthys
9c0f1f3505
Fix OOB read in m_whox.
...
Strange order for a compare, first the 2nd byte, then the 1st byte ;)
Anyway, this issue can only be triggered since rc1, no big issue.
2019-02-06 19:31:10 +01:00
Bram Matthys
e443182573
UnrealIRCd 4.2.2-rc1
2019-02-06 16:00:38 +01:00
Bram Matthys
988f64e3b3
Fix crash when linking (caused by commit from 4 days ago).
2019-02-06 12:54:37 +01:00