Ignore:
Timestamp:
May 27, 2009, 11:39:15 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/lib/interface.c

    r228 r233  
    152152
    153153/****************************************************************************
    154  Return a pointer to the in_addr of the first IPv4 interface.
     154 Return a pointer to the in_addr of the first IPv4 interface that's
     155 not 0.0.0.0.
    155156**************************************************************************/
    156157
     
    160161
    161162        for (i=local_interfaces;i ;i=i->next) {
    162                 if (i->ip.ss_family == AF_INET) {
     163                if ((i->ip.ss_family == AF_INET) &&
     164                    (!is_zero_ip_v4(((struct sockaddr_in *)&i->ip)->sin_addr)))
     165                {
    163166                        break;
    164167                }
Note: See TracChangeset for help on using the changeset viewer.