From 862a7e6cb1628cdfd3b062cacc3014e90bdf0efa Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 12 Oct 2007 11:37:03 +0200 Subject: Fix the build WITH_DNS_UPDATES. Jeremy, please have a look. Guenther (This used to be commit 4dfda879a3ad44be7008702b9fbefe3858436118) --- source3/utils/net_dns.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c index 716192b057..8b82a96892 100644 --- a/source3/utils/net_dns.c +++ b/source3/utils/net_dns.c @@ -157,8 +157,14 @@ int get_my_ip_address( struct in_addr **ips ) } for ( i=0; isin_addr; + + if (!is_loopback_ip_v4(ifip)) { + memcpy(&list[count++], &ifip, sizeof(struct in_addr)); + } } } *ips = list; -- cgit