1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().

Guenther
This commit is contained in:
Günther Deschner 2009-04-08 12:47:10 +02:00
parent 403422e1ea
commit 78951bd7f4

View File

@ -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;