Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Kahn Gillmor
Knot DNS Resolver
Commits
0e81b6f4
Commit
0e81b6f4
authored
Jan 18, 2016
by
Grigorii Demidov
Browse files
lib/dnssec: wrong prepend_asterisk() usage was fixed, cleanup
parent
7e5d0204
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dnssec/nsec3.c
View file @
0e81b6f4
...
...
@@ -353,7 +353,7 @@ fail:
*
* @param tgt Target buffer to write domain name into.
* @param name Name to be added to the asterisk.
* @return
0
or error code
* @return
Size of the resulting name
or error code
.
*/
static
int
prepend_asterisk
(
uint8_t
*
tgt
,
size_t
maxlen
,
const
knot_dname_t
*
name
)
{
...
...
@@ -639,9 +639,10 @@ static int matches_closest_encloser_wildcard(const knot_pkt_t *pkt, knot_section
uint8_t
wildcard
[
KNOT_DNAME_MAXLEN
];
int
ret
=
prepend_asterisk
(
wildcard
,
sizeof
(
wildcard
),
encloser
);
if
(
ret
<
3
)
{
if
(
ret
<
0
)
{
return
ret
;
}
assert
(
ret
>=
3
);
int
flags
;
for
(
unsigned
i
=
0
;
i
<
sec
->
count
;
++
i
)
{
...
...
Write
Preview
Supports
Markdown
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