adi <[EMAIL PROTECTED]> writes:

[ ... ]

> Arggh.. thanks again!
> 
> Our mailserver currently being attack by navidad.exe ;-(
> I didn't received your patch, yet. Anyway, I think this patch would
> be more correct than previous one :-)

Yep, that patch looks fine; mine's pretty much the same, but puts the
IP address first instead of last, and uses byte_copy instead of
ip_scan to fill in the ix structure.

-----ScottG.

> 
> % ./ipmeprint
> 127.0.0.1
> 10.0.7.21
> 10.0.7.20
> 10.0.100.1
> 10.0.100.2
> 10.0.100.3
> 10.0.100.4
> 10.0.100.5
> 0.0.0.0
> 
> Regards,
> 
> P.Y. Adi Prasaja
> 
> --- ipme.c    Mon Jun 15 17:53:16 1998
> +++ /usr/local/src/qmail-1.03/ipme.c  Mon Jan 29 16:09:15 2001
> @@ -89,6 +89,8 @@
>  #endif
>      x += len;
>    }
> +  ip_scan("0.0.0.0", &ix.ip);
> +  if (!ipalloc_append(&ipme,&ix)) { close(s); return 0; }
>    close(s);
>    ipmeok = 1;
>    return 1;

Reply via email to