diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c index 6163f53c6e..e1993488f5 100644 --- a/source3/utils/net_dns.c +++ b/source3/utils/net_dns.c @@ -158,8 +158,8 @@ int get_my_ip_address( struct in_addr **ips ) } for ( i=0; i<n; i++ ) { - if ( nics[i].ip.s_addr != loopback_ip.s_addr ) { - memcpy( &list[count++], &nics[i].ip, sizeof( struct in_addr ) ); + if ( nics[i].iface_addr.ip.s_addr != loopback_ip.s_addr ) { + memcpy( &list[count++], &nics[i].iface_addr.ip, sizeof( struct in_addr ) ); } } *ips = list; |