summaryrefslogtreecommitdiffstats
path: root/source/nameservreply.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-10-25 16:43:04 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-10-25 16:43:04 +0000
commit7c2f1da3773bac59ba0aeea7c0cac1134a74381c (patch)
treeb2b8cbff86809d827c60be58126924ed979f50e0 /source/nameservreply.c
parent2fedc53b4ea38e482fea7e3296637d6e44e031b7 (diff)
downloadsamba-7c2f1da3773bac59ba0aeea7c0cac1134a74381c.tar.gz
samba-7c2f1da3773bac59ba0aeea7c0cac1134a74381c.tar.xz
samba-7c2f1da3773bac59ba0aeea7c0cac1134a74381c.zip
debugged dns lookup / netbios name query code from yesterday.
lkcl
Diffstat (limited to 'source/nameservreply.c')
-rw-r--r--source/nameservreply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nameservreply.c b/source/nameservreply.c
index 407459b617c..f7df7c485b3 100644
--- a/source/nameservreply.c
+++ b/source/nameservreply.c
@@ -502,7 +502,7 @@ void reply_name_query(struct packet_struct *p)
char rdata[6];
struct subnet_record *d = NULL;
BOOL success = True;
- struct name_record *n;
+ struct name_record *n = NULL;
/* directed queries are for WINS server: broadcasts are local SELF queries.
the exception is Domain Master names. */
@@ -546,7 +546,7 @@ void reply_name_query(struct packet_struct *p)
if (success)
{
/* look up the name in the cache */
- n = find_name_search(&d, question, p->ip, search));
+ n = find_name_search(&d, question, search, p->ip);
/* it is a name that already failed DNS lookup or it's expired */
if (n->source == DNSFAIL ||