From 25b30c08dce8c04b7b98c02ac1de61d7aa76798f Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Wed, 17 Jul 1996 18:33:36 +0000 Subject: lots of changes to nmbd lkcl (This used to be commit 45d3b2644733333c657c48a69719fec72881f7df) --- source3/nameresp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/nameresp.c') diff --git a/source3/nameresp.c b/source3/nameresp.c index f87088dffa..0f76323df0 100644 --- a/source3/nameresp.c +++ b/source3/nameresp.c @@ -45,6 +45,8 @@ static void dead_netbios_entry(struct subnet_record *d, DEBUG(3,("Removing dead netbios entry for %s %s (num_msgs=%d)\n", inet_ntoa(n->send_ip), namestr(&n->name), n->num_msgs)); + debug_state_type(n->state); + switch (n->state) { case NAME_QUERY_CONFIRM: @@ -113,7 +115,7 @@ static void dead_netbios_entry(struct subnet_record *d, wanted the unique name and tell them that they can have it */ - add_name_respond(d,n->fd, n->response_id ,&n->name, + add_name_respond(d,n->fd,d->myip, n->response_id ,&n->name, n->nb_flags, GET_TTL(0), n->reply_to_ip, False, n->reply_to_ip); @@ -140,7 +142,7 @@ static void dead_netbios_entry(struct subnet_record *d, /* IMPORTANT: see response_name_reg() */ name_register_work(d,n->name.name,n->name.name_type, - n->nb_flags, n->ttl, n->send_ip, n->bcast); + n->nb_flags, n->ttl, n->reply_to_ip, n->bcast); } else { -- cgit