svn commit: samba r8905 - in branches/SAMBA_4_0/source/lib/netif: .
tridge at samba.org
tridge at samba.org
Tue Aug 2 01:22:38 GMT 2005
Author: tridge
Date: 2005-08-02 01:22:38 +0000 (Tue, 02 Aug 2005)
New Revision: 8905
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8905
Log:
don't try to do DNS lookups on interface names with wildcards
Modified:
branches/SAMBA_4_0/source/lib/netif/interface.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/netif/interface.c
===================================================================
--- branches/SAMBA_4_0/source/lib/netif/interface.c 2005-08-02 01:12:58 UTC (rev 8904)
+++ branches/SAMBA_4_0/source/lib/netif/interface.c 2005-08-02 01:22:38 UTC (rev 8905)
@@ -136,6 +136,10 @@
/* 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 &&
More information about the samba-cvs
mailing list