Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
5b9a83dd
Commit
5b9a83dd
authored
Oct 24, 2000
by
Brian Wellington
Browse files
ndots handling is correct now (I think).
parent
0e3c7913
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/named/lwsearch.c
View file @
5b9a83dd
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: lwsearch.c,v 1.
1
2000/10/24
04:2
5:
1
4 bwelling Exp $ */
/* $Id: lwsearch.c,v 1.
2
2000/10/24
17:1
5:
5
4 bwelling Exp $ */
#include
<isc/magic.h>
#include
<isc/mem.h>
...
...
@@ -128,11 +128,14 @@ ns_lwsearchctx_init(ns_lwsearchctx_t *sctx, ns_lwsearchlist_t *list,
INSIST
(
sctx
!=
NULL
);
sctx
->
relname
=
name
;
sctx
->
searchname
=
NULL
;
if
(
dns_name_isabsolute
(
name
)
||
dns_name_countlabels
(
name
)
>
ndots
)
sctx
->
doneexact
=
ISC_FALSE
;
if
(
dns_name_isabsolute
(
name
))
sctx
->
list
=
NULL
;
else
else
{
sctx
->
list
=
list
;
sctx
->
doneexact
=
ISC_FALSE
;
if
(
dns_name_countlabels
(
name
)
<=
ndots
)
sctx
->
doneexact
=
ISC_TRUE
;
}
}
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment