summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-27 09:57:18 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-27 11:02:53 +0100
commitfec0baacb658eb1bfc15c8ca4dfeecc1cf84eb79 (patch)
tree93055e96b9d02adf9804c69a25f35c0dcf4067b4 /source3/lib
parent561205b0166cb4a9c2efbb32b8429f6a83827eee (diff)
downloadsamba-fec0baacb658eb1bfc15c8ca4dfeecc1cf84eb79.tar.gz
samba-fec0baacb658eb1bfc15c8ca4dfeecc1cf84eb79.tar.bz2
samba-fec0baacb658eb1bfc15c8ca4dfeecc1cf84eb79.zip
s3: Make is_zero_addr take a sockaddr_storage
All callers had to cast this anyway Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c2
1 files changed, 1 insertions, 1 deletions
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;
}