This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".
The branch, u2_10_12_branch has been updated
via 3cce30c584d321f567ac390e93cce2a1d00ea825 (commit)
via 5bbe0c7e128b5de44d94a39aca77dfcd257a0004 (commit)
via df499ebebc28506f005267c2de36d4f956650c60 (commit)
from 9b7611755415a25e338489d08f5cecdc1cca4bf0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3cce30c584d321f567ac390e93cce2a1d00ea825
Author: Michael Poole <[email protected]>
Date: Sun Jun 28 12:26:18 2020 -0400
matchexec: Remove redundant assignment to bs
After the "continue", the loop will continue, and eventually set bs = s
without ever using the value of bs that was assigned here.
diff --git a/ircd/match.c b/ircd/match.c
index 75086f7c..99e06efe 100644
--- a/ircd/match.c
+++ b/ircd/match.c
@@ -528,7 +528,7 @@ trychunk:
return 0;
if (*b == 'Z')
{
- bs = --s;
+ --s;
bb = b;
continue;
};
commit 5bbe0c7e128b5de44d94a39aca77dfcd257a0004
Author: Michael Poole <[email protected]>
Date: Sun Jun 28 12:24:37 2020 -0400
ms_nick: Fix commit for 35cf0933
sptr was used even earlier than I noticed.
diff --git a/ircd/m_nick.c b/ircd/m_nick.c
index 7b7dd4c5..8b62235c 100644
--- a/ircd/m_nick.c
+++ b/ircd/m_nick.c
@@ -292,6 +292,9 @@ int ms_nick(struct Client* cptr, struct Client* sptr, int
parc, char* parv[])
assert(0 != sptr);
assert(IsServer(cptr));
+ if (sptr == NULL)
+ return 0;
+
if ((IsServer(sptr) && parc < 8) || parc < 3)
{
sendto_opmask_butone(0, SNO_OLDSNO, "bad NICK param count for %s from %C",
@@ -299,9 +302,6 @@ int ms_nick(struct Client* cptr, struct Client* sptr, int
parc, char* parv[])
return need_more_params(sptr, "NICK");
}
- if (sptr == NULL)
- return 0;
-
ircd_strncpy(nick, parv[1], NICKLEN);
nick[NICKLEN] = '\0';
commit df499ebebc28506f005267c2de36d4f956650c60
Author: Michael Poole <[email protected]>
Date: Sun Jun 28 12:24:02 2020 -0400
add_listener: Warn on bad listener mask
diff --git a/ircd/listener.c b/ircd/listener.c
index c4d67872..8ed0e0f5 100644
--- a/ircd/listener.c
+++ b/ircd/listener.c
@@ -316,9 +316,12 @@ void add_listener(int port, const char* vhost_ip, const
char* mask,
}
memcpy(&listener->flags, flags, sizeof(listener->flags));
FlagSet(&listener->flags, LISTEN_ACTIVE);
- if (mask)
- ipmask_parse(mask, &listener->mask, &listener->mask_bits);
- else
+ if (mask) {
+ if (ipmask_parse(mask, &listener->mask, &listener->mask_bits) < 1) {
+ sendto_opmask_butone(NULL, SNO_TCPCOMMON, "Invalid IP mask for "
+ "listening port: %s", mask);
+ }
+ } else
listener->mask_bits = 0;
#ifdef IPV6
-----------------------------------------------------------------------
Summary of changes:
ircd/listener.c | 9 ++++++---
ircd/m_nick.c | 6 +++---
ircd/match.c | 2 +-
3 files changed, 10 insertions(+), 7 deletions(-)
hooks/post-receive
--
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches