git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0881664
)
r8905: don't try to do DNS lookups on interface names with wildcards
author
Andrew Tridgell
<tridge@samba.org>
Tue, 2 Aug 2005 01:22:38 +0000
(
01:22
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:30:17 +0000
(13:30 -0500)
(This used to be commit
bbdd446254a0e66af3326e2e66d568eeee0922c0
)
source4/lib/netif/interface.c
patch
|
blob
|
history
diff --git
a/source4/lib/netif/interface.c
b/source4/lib/netif/interface.c
index 670913ab6fe33fea1877ff313209521c600ca55e..17a10c6799423e9b8c0c774ed90d5f37648d7366 100644
(file)
--- a/
source4/lib/netif/interface.c
+++ b/
source4/lib/netif/interface.c
@@
-136,6
+136,10
@@
static void interpret_interface(TALLOC_CTX *mem_ctx, const char *token)
/* maybe it is a DNS name */
p = strchr_m(token,'/');
if (!p) {
+ /* don't try to do dns lookups on wildcard names */
+ if (strpbrk(token, "*?") != NULL) {
+ return;
+ }
ip.s_addr = interpret_addr2(token).addr;
for (i=0;i<total_probed;i++) {
if (ip.s_addr == probed_ifaces[i].ip.s_addr &&