Re: [distcc-patches] Re: [PATCH] IPv6 ACLs

Fergus Henderson <[email protected]>
Newsgroups gmane.comp.compilers.distcc
Message-ID <[email protected]>
Looks good to me.

There are some minor style issues where improvements are possible,  
e.g. using *iptr++ = ... everywhere instead of mixing the increments  
of iptr in the for(); and using the same type with just the ipv6 field  
of the union #ifdef'd, rather than the whole type. But this I'd fine  
as is.

On Jul 21, 2009, at 5:15 AM, Bob Ham <[email protected]> wrote:

> On Mon, 2009-07-20 at 22:23 -0400, Fergus Henderson wrote:
>
>> Oh, I see that the old code that this is replacing didn't check the
>> return value of strdup() either.
>
> Indeed, both of the issues you raised were a continuation of the modus
> operandi.  As you noted, the return value of strdup() was not checked.
> Also, the following non-standard C was used in srvnet.c:
>
> -            const in_addr_t *a4;
> ...
> -                a4 = (const in_addr_t *) &a6->s6_addr[12];
>
>
> Regardless, I've updated the patch to correct these issues.  I've also
> made two more updates.  One is a fix to ensure the maximum bit mask  
> size
> is set according to the address family and not just whether RFC2553
> support is enabled.
>
> The other, slightly more worrying update modifies the non-RFC2553 code
> to use inet_aton() instead of inet_pton().  The inet_pton() function  
> is
> defined in RFC2553.  This is worrying because it means that people  
> have
> been compiling distcc without RFC2553 support enabled but still  
> using a
> function defined by that RFC.  The fact that this state has continued
> without being noticed previously calls into question the value of
> maintaining non-RFC2553 code at all.
>
>
> -- 
> Bob Ham <[email protected]>
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the "distcc- 
> patches" list.
> To post to this list, send email to <[email protected]>.
> To unsubscribe from this list, send email to <[email protected] 
> >.
> For archives and more options, see <http://groups.google.com/group/distcc-patches 
> >.
> -~----------~----~----~----~------~----~------~--~---
>
> <distcc-v6-acl-2.patch>
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.