From fec0baacb658eb1bfc15c8ca4dfeecc1cf84eb79 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Feb 2011 09:57:18 +0100 Subject: s3: Make is_zero_addr take a sockaddr_storage All callers had to cast this anyway Autobuild-User: Volker Lendecke Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104 --- source3/lib/util_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index d0ff960a3c..1de6d17a41 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1666,7 +1666,7 @@ bool is_myname_or_ipaddr(const char *s) return true; } - if (is_zero_addr((struct sockaddr *)&ss) || + if (is_zero_addr(&ss) || is_loopback_addr((struct sockaddr *)&ss)) { return false; } -- cgit