diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-27 09:57:18 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-02-27 11:02:53 +0100 |
commit | fec0baacb658eb1bfc15c8ca4dfeecc1cf84eb79 (patch) | |
tree | 93055e96b9d02adf9804c69a25f35c0dcf4067b4 /source3/lib | |
parent | 561205b0166cb4a9c2efbb32b8429f6a83827eee (diff) | |
download | samba-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.c | 2 |
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; } |