Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

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

    r206 r221  
    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.