summaryrefslogtreecommitdiffstats
path: root/source/nameresp.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-07-17 18:33:36 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-07-17 18:33:36 +0000
commit45d3b2644733333c657c48a69719fec72881f7df (patch)
tree69ef4ec7c4f96b9c3f4fb451e73939cbcdf0a96a /source/nameresp.c
parentc290c229f9cef7f8bea0a77531ef7b3501323e9c (diff)
downloadsamba-45d3b2644733333c657c48a69719fec72881f7df.tar.gz
samba-45d3b2644733333c657c48a69719fec72881f7df.tar.xz
samba-45d3b2644733333c657c48a69719fec72881f7df.zip
lots of changes to nmbd
lkcl
Diffstat (limited to 'source/nameresp.c')
-rw-r--r--source/nameresp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/nameresp.c b/source/nameresp.c
index f87088dffa5..0f76323df0b 100644
--- a/source/nameresp.c
+++ b/source/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
{