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
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
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
Knot projects
Knot DNS
Commits
504ea373
Commit
504ea373
authored
Mar 13, 2017
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nitpicks' into 'master'
add parameter check and improve doc-comments See merge request
!686
parents
13353acf
a8267f35
Pipeline
#2371
passed with stages
in 27 minutes and 14 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
src/libknot/dname.h
src/libknot/dname.h
+1
-1
src/libknot/packet/wire.h
src/libknot/packet/wire.h
+1
-1
src/libknot/rrset-dump.c
src/libknot/rrset-dump.c
+4
-0
No files found.
src/libknot/dname.h
View file @
504ea373
...
...
@@ -368,7 +368,7 @@ int knot_dname_align(const uint8_t **d1, uint8_t d1_labels,
*
* Maximum length of such a domain name is KNOT_DNAME_MAXLEN characters.
*
* \param dst Memory to store converted name into.
* \param dst Memory to store converted name into.
dst[0] will contain the length.
* \param src Source domain name.
* \param pkt Source name packet (NULL if not any).
*
...
...
src/libknot/packet/wire.h
View file @
504ea373
...
...
@@ -376,7 +376,7 @@ static inline void knot_wire_set_opcode(uint8_t *packet, short opcode)
*
* \param packet Wire format of the packet.
*
* \return
Flags with only the QR bit according to its setting in the packet
.
* \return
Nonzero for responses and zero for queries
.
*/
static
inline
uint8_t
knot_wire_get_qr
(
const
uint8_t
*
packet
)
{
...
...
src/libknot/rrset-dump.c
View file @
504ea373
...
...
@@ -1756,6 +1756,10 @@ int knot_rrset_txt_dump_data(const knot_rrset_t *rrset,
}
const
knot_rdata_t
*
rr_data
=
knot_rdataset_at
(
&
rrset
->
rrs
,
pos
);
if
(
rr_data
==
NULL
)
{
return
KNOT_EINVAL
;
/* bad pos or rrset->rrs */
}
uint8_t
*
data
=
knot_rdata_data
(
rr_data
);
uint16_t
data_len
=
knot_rdata_rdlen
(
rr_data
);
...
...
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