Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
f37df93b
Commit
f37df93b
authored
Apr 24, 2013
by
Marek Vavrusa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coverity fixes.
Change-Id: Ieb580a23436b227fb889197cb3f4857f03ccf7ae
parent
797d931a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
src/knot/ctl/process.c
src/knot/ctl/process.c
+0
-5
src/knot/ctl/remote.c
src/knot/ctl/remote.c
+2
-2
No files found.
src/knot/ctl/process.c
View file @
f37df93b
...
...
@@ -52,11 +52,6 @@ pid_t pid_read(const char* fn)
char
buf
[
64
];
if
(
fn
)
{
struct
stat
st
;
if
(
stat
(
fn
,
&
st
)
!=
0
)
{
return
KNOT_ENOENT
;
}
FILE
*
fp
=
fopen
(
fn
,
"r"
);
if
(
!
fp
)
{
return
KNOT_ENOENT
;
...
...
src/knot/ctl/remote.c
View file @
f37df93b
...
...
@@ -601,13 +601,13 @@ int remote_process(server_t *s, int r, uint8_t* buf, size_t buflen)
uint64_t
ts_tmsigned
=
0
;
const
knot_rrset_t
*
tsig_rr
=
knot_packet_tsig
(
pkt
);
if
(
acl_match
(
conf
()
->
ctl
.
acl
,
&
a
,
&
m
)
==
ACL_DENY
)
{
knot_packet_free
(
&
pkt
);
socket_close
(
c
);
rcu_read_unlock
();
knot_packet_free
(
&
pkt
);
log_server_warning
(
"Denied remote control for '%s@%d' "
"(doesn't match ACL).
\n
"
,
straddr
,
rport
);
remote_senderr
(
c
,
buf
,
wire_len
);
socket_close
(
c
);
return
KNOT_EACCES
;
}
if
(
m
&&
m
->
val
)
{
...
...
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