Skip to content
Snippets Groups Projects
Commit 2fe5b319 authored by rswindell's avatar rswindell
Browse files

Prevent double filtering.

parent 1bf3703b
No related branches found
No related tags found
No related merge requests found
......@@ -2601,6 +2601,9 @@ BOOL DLLCALL filter_ip(scfg_t* cfg, char* prot, char* reason, char* host
if(fname==NULL)
fname=ip_can;
if(findstr(ip_addr, fname)) /* Already filtered? */
return(TRUE);
if((fp=fopen(fname,"a"))==NULL)
return(FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment