allow name_type 0x20 as well as name_type 0x0 in dns proxying
authorAndrew Tridgell <tridge@samba.org>
Sun, 14 Dec 1997 17:49:41 +0000 (17:49 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 14 Dec 1997 17:49:41 +0000 (17:49 +0000)
(This used to be commit be8a40487c128947cead19a43cf2f983e9543305)

source3/nmbd/nmbd_winsserver.c

index ba7b62e5ab23a15593375f6fd5d11c091d511e45..bd8febd65d4b11cc41a8e2c9099bfba5a19cb8d9 100644 (file)
@@ -1338,7 +1338,8 @@ void wins_process_name_query_request(struct subnet_record *subrec,
    * Name not found in WINS - try a dns query if it's a 0x20 name.
    */
 
-  if(lp_dns_proxy() && (question->name_type == 0x20))
+  if(lp_dns_proxy() && 
+     ((question->name_type == 0x20) || question->name_type == 0))
   {
 
     DEBUG(3,("wins_process_name_query: name query for name %s not found - doing dns lookup.\n",