aboutsummaryrefslogtreecommitdiffstats
path: root/src/dnsbl.c
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-05-31 20:51:36 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-05-31 20:51:36 -0400
commit7c45cfc103e49840fd49b54ebc0a34c88a623f01 (patch)
tree5025e7a9c40d329bc505cdd4396fe44786f77faa /src/dnsbl.c
parent34ef1f25a6bb7f52d230885eb95f4b11a388412b (diff)
parentf3179749aec8eec40166576bef7e0daf893939d4 (diff)
Update upstream source from tag 'upstream/1.1.7'
Update to upstream version '1.1.7' with Debian dir 4ddb09241810e51ff3dfee9af3e56a170c38f1e5
Diffstat (limited to 'src/dnsbl.c')
-rw-r--r--src/dnsbl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dnsbl.c b/src/dnsbl.c
index 07812d7..9082d7a 100644
--- a/src/dnsbl.c
+++ b/src/dnsbl.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2002-2003 Erik Fears
- * Copyright (c) 2014-2019 ircd-hybrid development team
+ * Copyright (c) 2014-2020 ircd-hybrid development team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -260,7 +260,6 @@ void
dnsbl_report(const struct scan_struct *ss)
{
char buf[2048], cmdbuf[256];
- FILE *fp;
assert(ss->ip);
@@ -281,7 +280,8 @@ dnsbl_report(const struct scan_struct *ss)
if (OPT_DEBUG >= 3)
log_printf("DNSBL -> Sending following email:\n%s\n", buf);
- if ((fp = popen(cmdbuf, "w")) == NULL)
+ FILE *fp = popen(cmdbuf, "w");
+ if (fp == NULL)
{
log_printf("DNSBL -> Failed to create pipe to '%s' for email report!", cmdbuf);
irc_send_channels("I was trying to create a pipe to '%s' to send a DNSBL "