diff options
author | Günther Deschner <gd@samba.org> | 2009-04-08 12:47:10 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-08 12:47:10 +0200 |
commit | 78951bd7f4d8bfe13691b3291151c8dedd8e29ef (patch) | |
tree | bde210c04c71bcb5e60537892b1cf52412b46fc9 /source3/lib | |
parent | 403422e1ea8f654a9dee12566b8b28c09fe301c8 (diff) | |
download | samba-78951bd7f4d8bfe13691b3291151c8dedd8e29ef.tar.gz samba-78951bd7f4d8bfe13691b3291151c8dedd8e29ef.tar.bz2 samba-78951bd7f4d8bfe13691b3291151c8dedd8e29ef.zip |
s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().
Guenther
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 21dd624b54..5f9d4768ba 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1942,6 +1942,10 @@ bool is_myname_or_ipaddr(const char *s) return false; } + if (ismyaddr((struct sockaddr *)&ss)) { + return true; + } + if (is_zero_addr((struct sockaddr *)&ss) || is_loopback_addr((struct sockaddr *)&ss)) { return false; |