From 913ed57b6dd0c73336a911c68e2186b9248770d9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 11 Jul 2001 19:03:09 +0000 Subject: Merge of compile warning fix from 2.2. Jeremy. --- source/nmbd/nmbd_namequery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/nmbd') diff --git a/source/nmbd/nmbd_namequery.c b/source/nmbd/nmbd_namequery.c index 61435c14f55..66af796b6f6 100644 --- a/source/nmbd/nmbd_namequery.c +++ b/source/nmbd/nmbd_namequery.c @@ -25,6 +25,7 @@ #include "includes.h" extern int DEBUGLEVEL; +extern struct in_addr ipzero; /**************************************************************************** Deal with a response packet when querying a name. @@ -38,7 +39,7 @@ static void query_name_response( struct subnet_record *subrec, BOOL success = False; struct nmb_name *question_name = &rrec->packet->packet.nmb.question.question_name; - struct in_addr answer_ip; + struct in_addr answer_ip = ipzero; /* 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 @@ -103,6 +104,7 @@ static void query_name_response( struct subnet_record *subrec, { if( DEBUGLVL( 0 ) ) { + putip( (char *)&answer_ip, &nmb->answers->rdata[2] ); dbgtext( "query_name_response: " ); dbgtext( "Multiple (%d) responses ", rrec->num_msgs ); dbgtext( "received for a query on subnet %s ", subrec->subnet_name ); -- cgit