BUGFIX: lib/interface.c - SAMBA 2.0.6.

Jeremy Allison jeremy at valinux.com
Fri Nov 10 17:57:00 GMT 2000


"John E. Malmberg" wrote:
> 
> In the module lib/interface.c there is a bug in the routine
> interfaces_changed().
> 
> It calls the routine get_interfaces() to determine if any new interfaces
> have been added.
> 
> If the underlying operating system and TCP/IP program do not provide this
> information the routine get_interfaces returns -1.
> 
> This is not checked in the module interfaces_changed, and results in a
> memcmp being called with -1 bytes.
> 
> The fix is to ensure that the value for n is > 0.  If n <= 0, then false
> should be returned.

Thanks for the fix, I've integrated it for 2.2.x and HEAD.

Cheers,

	Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list