git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
403422e
)
s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().
author
Günther Deschner
<gd@samba.org>
Wed, 8 Apr 2009 10:47:10 +0000
(12:47 +0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 8 Apr 2009 10:47:10 +0000
(12:47 +0200)
Guenther
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index 21dd624b54e984b8851978dc64056bbdacc05421..5f9d4768bafb04a8cbc3b91d4aaf4922f9a30884 100644
(file)
--- 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;