tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: setsockopt() compat issue



On Fri, Oct 17, 2008 at 08:56:52AM +0100, Iain Hibbert wrote:
 > I looked at this, it seems ffproxy does:
 > 
 >      void *foo
 >      s = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
 >      setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &foo, sizeof(foo));
 > 
 > with actually no initialisation of foo at all, it just hopes that its a
 > nonzero value which is a bit of a WTF in itself.

I see no reason to cater to this.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index