From 6e64a8b40fe0857cc5565ff855387c2ef97374dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 2 Aug 2005 01:22:38 +0000 Subject: r8905: don't try to do DNS lookups on interface names with wildcards (This used to be commit bbdd446254a0e66af3326e2e66d568eeee0922c0) --- source4/lib/netif/interface.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4') 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