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
32571606
Commit
32571606
authored
Dec 12, 2013
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverity: fix use before null check
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
ce42ba2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
network.c
src/lxc/network.c
+2
-1
No files found.
src/lxc/network.c
View file @
32571606
...
@@ -140,10 +140,11 @@ int lxc_netdev_move_by_name(char *ifname, pid_t pid)
...
@@ -140,10 +140,11 @@ int lxc_netdev_move_by_name(char *ifname, pid_t pid)
{
{
int
index
;
int
index
;
index
=
if_nametoindex
(
ifname
);
if
(
!
ifname
)
if
(
!
ifname
)
return
-
EINVAL
;
return
-
EINVAL
;
index
=
if_nametoindex
(
ifname
);
return
lxc_netdev_move_by_index
(
index
,
pid
);
return
lxc_netdev_move_by_index
(
index
,
pid
);
}
}
...
...
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