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:
parent
403422e1ea
commit
78951bd7f4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user