1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Fix from John Malmberg. When I added the additional information to the

debug block that reports multiple query responses I did not notice that
the local answer_ip variable was only selectively set.

Chris -)-----
(This used to be commit 22ea0770d8)
This commit is contained in:
Christopher R. Hertel 2001-07-10 16:10:04 +00:00
parent 809e32e8df
commit 973a78c2db

View File

@ -40,6 +40,8 @@ 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. */
/* 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
we should mark the name in conflict.. */
@ -103,6 +105,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 );