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  6e71519769645a9baef50a2c469f887bb1d2d69b (commit)
      from  7c9251b9f2722567945a111874f0a96ce6985c63 (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 6e71519769645a9baef50a2c469f887bb1d2d69b
Author: Michael Poole <[email protected]>
Date:   Sun Dec 11 14:13:58 2016 -0500

    IPcheck: Bugfix for IPv6 /48 rejections from a new /64.
    
    After "IPcheck: Rate-limit connections per IPv6 /48.", if a connection
    from a rate-limited /48 came from a /64 that had no current connections,
    then `entry` can be null in this path.
    
    Fixes: 9122e6f50e7f672a3c034be9f8f205a8b610ded8

diff --git a/ircd/IPcheck.c b/ircd/IPcheck.c
index d5f8307..5b68512 100644
--- a/ircd/IPcheck.c
+++ b/ircd/IPcheck.c
@@ -414,8 +414,11 @@ int ip_registry_check_local(const struct irc_in_addr 
*addr, time_t* next_target_
      * Don't refuse connection when we just rebooted the server
      */
 reject:
-    assert(entry->connected > 0);
-    --entry->connected;
+    if (entry)
+    {
+      assert(entry->connected > 0);
+      --entry->connected;
+    }
     Debug((DEBUG_DNS, "IPcheck refusing local connection from %s: too fast.", 
ircd_ntoa(&entry->addr)));
     return 0;
   }
-----------------------------------------------------------------------

Summary of changes:
 ircd/IPcheck.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to