Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
5106ecd0
Unverified
Commit
5106ecd0
authored
Sep 06, 2018
by
2xsec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxccontainer: fix dereferenced pointer
Signed-off-by:
2xsec
<
dh48.jeong@samsung.com
>
parent
a21ed555
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lxccontainer.c
src/lxc/lxccontainer.c
+6
-0
No files found.
src/lxc/lxccontainer.c
View file @
5106ecd0
...
@@ -583,6 +583,9 @@ static int do_lxcapi_console_log(struct lxc_container *c, struct lxc_console_log
...
@@ -583,6 +583,9 @@ static int do_lxcapi_console_log(struct lxc_container *c, struct lxc_console_log
{
{
int
ret
;
int
ret
;
if
(
!
c
)
return
-
EINVAL
;
ret
=
lxc_cmd_console_log
(
c
->
name
,
do_lxcapi_get_config_path
(
c
),
log
);
ret
=
lxc_cmd_console_log
(
c
->
name
,
do_lxcapi_get_config_path
(
c
),
log
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
if
(
ret
==
-
ENODATA
)
if
(
ret
==
-
ENODATA
)
...
@@ -4548,6 +4551,9 @@ WRAP_API(bool, lxcapi_snapshot_destroy_all)
...
@@ -4548,6 +4551,9 @@ WRAP_API(bool, lxcapi_snapshot_destroy_all)
static
bool
do_lxcapi_may_control
(
struct
lxc_container
*
c
)
static
bool
do_lxcapi_may_control
(
struct
lxc_container
*
c
)
{
{
if
(
!
c
)
return
false
;
return
lxc_try_cmd
(
c
->
name
,
c
->
config_path
)
==
0
;
return
lxc_try_cmd
(
c
->
name
,
c
->
config_path
)
==
0
;
}
}
...
...
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