Claudio Nieder <[EMAIL PROTECTED]> writes:

> www.qmail.org mentions Scott Gifford's patch making qmail recognize
> 0.0.0.0 as local IP address. But the link to the patch
> 
>   http://www.tir.com/~sgifford/qmail/qmail-0.0.0.0.patch
> 
> is invalid:
> 
> Not Found
> 
> The requested URL /~sgifford/qmail/qmail-0.0.0.0.patch was not found on this server.
> 
> 
> Does anybody know, where the actual place for this file is?

Yeah, I'm having trouble with my Web site this week.  Here's a copy.
Things should be back up after this weekend, I hope.

-----ScottG.

--- qmail-1.03/ipme.c	Mon Jun 15 06:53:16 1998
+++ qmail-1.03-sg/ipme.c	Mon Jan 29 02:27:38 2001
@@ -46,6 +46,11 @@
   ipme.len = 0;
   ix.pref = 0;
  
+  /* 0.0.0.0 is a special address which always refers to 
+   * "this host, this network", according to RFC 1122, Sec. 3.2.1.3a.
+  */
+  byte_copy(&ix.ip,4,"\0\0\0\0");
+  if (!ipalloc_append(&ipme,&ix)) { return 0; }
   if ((s = socket(AF_INET,SOCK_STREAM,0)) == -1) return -1;
  
   len = 256;

Reply via email to