Skip to content

Instantly share code, notes, and snippets.

@ManiacTwister
Last active August 29, 2015 14:15
Show Gist options
  • Save ManiacTwister/4a8ba388fa84f63b08bb to your computer and use it in GitHub Desktop.
Save ManiacTwister/4a8ba388fa84f63b08bb to your computer and use it in GitHub Desktop.
commit ad5c984c5e53ed26fb71b1bfa8af9bd1da0b7e8d
Author: Maniactwister <git@s7t.de>
Date: Mon Feb 23 18:06:27 2015 +0100
Fixed dnsbl
diff --git a/modules/proxyscan/dnsbl.c b/modules/proxyscan/dnsbl.c
index d8f89fc..c10b064 100644
--- a/modules/proxyscan/dnsbl.c
+++ b/modules/proxyscan/dnsbl.c
@@ -484,6 +484,12 @@ static void dnsbl_hit(user_t *u, struct Blacklist *blptr)
svs = service_find("operserv");
+ /* BUGFIX: If the user is already disconnected (for example by the ircd blacklist) return here. */
+ if (u->nick == NULL)
+ {
+ return;
+ }
+
if (!strcasecmp("SNOOP", action))
{
slog(LG_INFO, "DNSBL: \2%s\2!%s@%s [%s] is listed in DNS Blacklist %s.", u->nick, u->user, u->host, u->gecos, blptr->host);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment