Possible bug in 3.2.7

Jeremy Allison jra at samba.org
Fri Jan 16 17:25:51 GMT 2009


On Fri, Jan 16, 2009 at 09:40:51AM +0100, Remy Zandwijk wrote:
>> And here is the patch. Committing to all post 3.2.x branches.
>
> Shouldn't char addr[INET6_ADDRSTRLEN] be declared globally?

No.

>Since after 
> the if-block, we can't be sure the memory is still allocated. And since  
> 'servername' is used further down the code...

You're thinking C++, not C. In C it's guarenteed to still be there.

Jeremy.


More information about the samba-technical mailing list