diff options
author | Samba Release Account <samba-bugs@samba.org> | 1996-10-27 15:23:51 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1996-10-27 15:23:51 +0000 |
commit | 5d55d4cf5cef506dcbb2b31cf2e308ac50f3776e (patch) | |
tree | 621656e450f2002f2500445d071e7db05ce6e3c5 | |
parent | f14a7c5ce8864714fa8fa7f8fe8d630a6ab0861f (diff) | |
download | samba-5d55d4cf5cef506dcbb2b31cf2e308ac50f3776e.tar.gz samba-5d55d4cf5cef506dcbb2b31cf2e308ac50f3776e.tar.bz2 samba-5d55d4cf5cef506dcbb2b31cf2e308ac50f3776e.zip |
removed getdomainname() stuff and appending a '.' to the name in
dns_name_search().
lkcl
(This used to be commit adf5a42c21cd73ee0eaf05030e01788908fbb8a5)
-rw-r--r-- | source3/namedbname.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/source3/namedbname.c b/source3/namedbname.c index c1ec92ea00..208fa95664 100644 --- a/source3/namedbname.c +++ b/source3/namedbname.c @@ -520,7 +520,6 @@ struct name_record *dns_name_search(struct nmb_name *question, int Time) BOOL dns_type = (name_type == 0x20 || name_type == 0); struct in_addr dns_ip; struct subnet_record *d = find_subnet(ipgrp); - pstring dns_name; if (d == NULL) return NULL; @@ -533,27 +532,8 @@ struct name_record *dns_name_search(struct nmb_name *question, int Time) return NULL; } - StrnCpy(dns_name, qname, sizeof(dns_name)); - if ((r = strchr(dns_name,'.')) == NULL) - { - /* append a dot to the name, hopefully to stop DNS recursing */ - strcat(dns_name, "."); - -#ifdef NETGROUP - { - char domainname[255]; - - if (getdomainname(domainname, sizeof(domainname)) == 0) - { - /* we have a domain name - append it to the dns name */ - strcat(dns_name, domainname); - } - } -#endif - } - /* look it up with DNS */ - dns_ip.s_addr = interpret_addr(dns_name); + dns_ip.s_addr = interpret_addr(qname); if (!dns_ip.s_addr) { |