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
d405a813
Commit
d405a813
authored
Jan 08, 2001
by
Andreas Gustafsson
Browse files
spacing
parent
812ed4ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/dig/dighost.c
View file @
d405a813
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dighost.c,v 1.18
0
2001/01/08 23:
44:09
gson Exp $ */
/* $Id: dighost.c,v 1.18
1
2001/01/08 23:
50:34
gson Exp $ */
/*
* Notice to programmers: Do not use this code as an example of how to
...
...
@@ -411,7 +411,7 @@ clone_lookup(dig_lookup_t *lookold, isc_boolean_t servers) {
looknew
=
make_empty_lookup
();
INSIST
(
looknew
!=
NULL
);
strncpy
(
looknew
->
textname
,
lookold
->
textname
,
MXNAME
);
looknew
->
textname
[
MXNAME
-
1
]
=
0
;
looknew
->
textname
[
MXNAME
-
1
]
=
0
;
looknew
->
rdtype
=
lookold
->
rdtype
;
looknew
->
rdclass
=
lookold
->
rdclass
;
looknew
->
rdtypeset
=
lookold
->
rdtypeset
;
...
...
@@ -651,7 +651,7 @@ setup_system(void) {
origin
,
ptr
,
MXNAME
);
search
->
origin
[
MXNAME
-
1
]
=
0
;
search
->
origin
[
MXNAME
-
1
]
=
0
;
ISC_LIST_INITANDAPPEND
(
search_list
,
search
,
...
...
@@ -674,7 +674,7 @@ setup_system(void) {
origin
,
ptr
,
MXNAME
-
1
);
search
->
origin
[
MXNAME
-
1
]
=
0
;
search
->
origin
[
MXNAME
-
1
]
=
0
;
ISC_LIST_INITANDPREPEND
(
search_list
,
search
,
...
...
@@ -803,7 +803,7 @@ add_opt(dns_message_t *msg, isc_uint16_t udpsize, isc_boolean_t dnssec
rdata
->
data
=
NULL
;
rdata
->
length
=
0
;
#ifdef DNS_OPT_NEWCODES_LIVE
for
(
i
=
0
;
i
<
optlist
.
used
;
i
++
)
for
(
i
=
0
;
i
<
optlist
.
used
;
i
++
)
optsize
+=
optlist
.
attrs
[
i
].
value
.
length
+
4
;
result
=
isc_buffer_allocate
(
mctx
,
&
rdatabuf
,
optsize
);
check_result
(
result
,
"isc_buffer_allocate"
);
...
...
@@ -1297,7 +1297,7 @@ setup_lookup(dig_lookup_t *lookup) {
__FILE__
,
__LINE__
);
strncpy
(
fixedsearch
->
origin
,
fixeddomain
,
sizeof
(
fixedsearch
->
origin
));
fixedsearch
->
origin
[
sizeof
(
fixedsearch
->
origin
)
-
1
]
=
0
;
fixedsearch
->
origin
[
sizeof
(
fixedsearch
->
origin
)
-
1
]
=
0
;
lookup
->
origin
=
fixedsearch
;
}
else
lookup
->
origin
=
ISC_LIST_HEAD
(
search_list
);
...
...
@@ -1451,7 +1451,7 @@ setup_lookup(dig_lookup_t *lookup) {
if
(
lookup
->
udpsize
>
0
||
lookup
->
dnssec
)
{
#else
/* DNS_OPT_NEWCODES_LIVE */
if
(
lookup
->
udpsize
>
0
||
||
lookup
->
dnssec
||
lookup
->
zonename
[
0
]
!=
0
||
lookup
->
viewname
[
0
]
!=
0
)
{
lookup
->
zonename
[
0
]
!=
0
||
lookup
->
viewname
[
0
]
!=
0
)
{
dns_fixedname_t
fname
;
isc_buffer_t
namebuf
,
*
wirebuf
=
NULL
;
dns_compress_t
cctx
;
...
...
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