diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-02 01:22:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:17 -0500 |
commit | 6e64a8b40fe0857cc5565ff855387c2ef97374dc (patch) | |
tree | ac3a679b84f12fcfc23f4721e25b54c4fd96a0ed | |
parent | 088166461d11049697f1b8f8fcad2432f23873f7 (diff) | |
download | samba-6e64a8b40fe0857cc5565ff855387c2ef97374dc.tar.gz samba-6e64a8b40fe0857cc5565ff855387c2ef97374dc.tar.bz2 samba-6e64a8b40fe0857cc5565ff855387c2ef97374dc.zip |
r8905: don't try to do DNS lookups on interface names with wildcards
(This used to be commit bbdd446254a0e66af3326e2e66d568eeee0922c0)
-rw-r--r-- | source4/lib/netif/interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/netif/interface.c b/source4/lib/netif/interface.c index 670913ab6f..17a10c6799 100644 --- 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 && |