Fix tree breakage, the last change was entirly non-portable, and we already
authorAndrew Bartlett <abartlet@samba.org>
Tue, 10 Jul 2001 17:14:52 +0000 (17:14 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 10 Jul 2001 17:14:52 +0000 (17:14 +0000)
have this nice variable to do exactly this...
(This used to be commit cad6f53433a9345c06ae94c5ef63434e72a2daea)

source3/nmbd/nmbd_namequery.c

index 67421103dd8a3e7553bd3c618675d1f22cdd8ebf..662d3895dda65fba7819ebb59a26855b28c45cd1 100644 (file)
@@ -26,6 +26,8 @@
 
 extern int DEBUGLEVEL;
 
+extern struct in_addr ipzero;
+
 /****************************************************************************
  Deal with a response packet when querying a name.
 ****************************************************************************/
@@ -40,7 +42,7 @@ static void query_name_response( struct subnet_record   *subrec,
                            &rrec->packet->packet.nmb.question.question_name;
   struct in_addr answer_ip;
 
-  answer_ip.S_un.S_addr = 0; /* Fix from JEM...should always initialize. */
+  answer_ip = ipzero; /* Fix from JEM...should always initialize. */
 
   /* Ensure we don't retry the query but leave the response record cleanup
      to the timeout code. We may get more answer responses in which case