code was added to stop samba from replying to queries for its own names (?! :-)
[samba.git] / source3 / namedbname.c
index 6cd89df5232f373334051c4a007d8d41d580a22b..0ec8cdbbbe581a2a20c504c4406f5c8faeeb2c7a 100644 (file)
@@ -529,13 +529,6 @@ struct name_record *search_for_name(struct subnet_record **d,
   
   if (*d == NULL) return NULL;
 
-  if (!n && (search & FIND_SELF)) {
-    DEBUG(3,("FIND_SELF set - failing lookup\n"));
-    return NULL;
-  }
-
-  DEBUG(4,("subnet %s ", inet_ntoa((*d)->bcast_ip)));
-
   /* now try DNS lookup. */
   if (!n)
     {