Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
637
Issues
637
List
Boards
Labels
Service Desk
Milestones
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
364cabf4
Commit
364cabf4
authored
Sep 14, 2017
by
Evan Hunt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] revert dlzexternal changes for portability
parent
c59bf663
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
18 deletions
+10
-18
bin/tests/system/dlzexternal/Makefile.in
bin/tests/system/dlzexternal/Makefile.in
+2
-7
bin/tests/system/dlzexternal/driver.c
bin/tests/system/dlzexternal/driver.c
+8
-11
No files found.
bin/tests/system/dlzexternal/Makefile.in
View file @
364cabf4
...
...
@@ -33,13 +33,8 @@ OBJS =
CFLAGS
=
@CFLAGS@ @SO_CFLAGS@
SO_LDFLAGS
=
@LDFLAGS@ @SO_LDFLAGS@
ISCLIBS
=
../../../../lib/isc/libisc.@A@
SO_STRIP
=
@SO_STRIP@
driver.@SO@
:
${SO_OBJS} ${ISCLIBS}
CLEANED
=
`
echo
"
${ISCLIBS}
${LIBS}
"
|
${SO_STRIP}
`
;
\
${LIBTOOL_MODE_LINK}
@SO_LD@
${SO_LDFLAGS}
-o
$@
${SO_OBJS}
\
$
${CLEANED}
driver.@SO@
:
${SO_OBJS}
${LIBTOOL_MODE_LINK}
@SO_LD@
${SO_LDFLAGS}
-o
$@
driver.@O@
clean distclean
::
rm
-f
${TARGETS}
...
...
bin/tests/system/dlzexternal/driver.c
View file @
364cabf4
/*
* Copyright (C) 2011-201
7
Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2011-201
6
Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -231,7 +231,6 @@ dlz_create(const char *dlzname, unsigned int argc, char *argv[],
char
soa_data
[
1024
];
const
char
*
extra
;
isc_result_t
result
;
size_t
znsize
;
int
n
;
UNUSED
(
dlzname
);
...
...
@@ -256,17 +255,15 @@ dlz_create(const char *dlzname, unsigned int argc, char *argv[],
}
/* Ensure zone name is absolute */
znsize
=
strlen
(
argv
[
1
])
+
2
;
state
->
zone_name
=
malloc
(
znsize
);
state
->
zone_name
=
malloc
(
strlen
(
argv
[
1
])
+
2
);
if
(
state
->
zone_name
==
NULL
)
{
free
(
state
);
return
(
ISC_R_NOMEMORY
);
}
if
(
argv
[
1
][
strlen
(
argv
[
1
])
-
1
]
==
'.'
)
{
strlcpy
(
state
->
zone_name
,
argv
[
1
],
znsize
);
}
else
{
snprintf
(
state
->
zone_name
,
znsize
,
"%s."
,
argv
[
1
]);
}
if
(
argv
[
1
][
strlen
(
argv
[
1
])
-
1
]
==
'.'
)
strcpy
(
state
->
zone_name
,
argv
[
1
]);
else
sprintf
(
state
->
zone_name
,
"%s."
,
argv
[
1
]);
if
(
strcmp
(
state
->
zone_name
,
"."
)
==
0
)
extra
=
".root"
;
...
...
@@ -329,7 +326,7 @@ dlz_findzonedb(void *dbdata, const char *name,
char
addrbuf
[
100
];
char
absolute
[
1024
];
str
lcpy
(
addrbuf
,
"unknown"
,
sizeof
(
addrbuf
)
);
str
cpy
(
addrbuf
,
"unknown"
);
if
(
methods
!=
NULL
&&
methods
->
sourceip
!=
NULL
&&
methods
->
version
-
methods
->
age
<=
DNS_CLIENTINFOMETHODS_VERSION
&&
...
...
@@ -458,7 +455,7 @@ dlz_lookup(const char *zone, const char *name, void *dbdata,
}
if
(
strcmp
(
name
,
"source-addr"
)
==
0
)
{
str
lcpy
(
buf
,
"unknown"
,
sizeof
(
buf
)
);
str
cpy
(
buf
,
"unknown"
);
if
(
methods
!=
NULL
&&
methods
->
sourceip
!=
NULL
&&
(
methods
->
version
-
methods
->
age
<=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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