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
51e7a874
Unverified
Commit
51e7a874
authored
Oct 02, 2013
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check return value of ifa_get_local_ip
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
c61eaadc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
network.c
src/lxc/network.c
+5
-1
No files found.
src/lxc/network.c
View file @
51e7a874
...
@@ -882,7 +882,11 @@ static int ip_addr_get(int family, int ifindex, void **res)
...
@@ -882,7 +882,11 @@ static int ip_addr_get(int family, int ifindex, void **res)
ip_info
=
(
struct
ip_req
*
)
msg
;
ip_info
=
(
struct
ip_req
*
)
msg
;
if
(
ip_info
->
ifa
.
ifa_index
==
ifindex
)
{
if
(
ip_info
->
ifa
.
ifa_index
==
ifindex
)
{
ifa_get_local_ip
(
family
,
ip_info
,
res
);
if
(
ifa_get_local_ip
(
family
,
ip_info
,
res
)
<
0
)
{
err
=
-
1
;
goto
out
;
}
/* Found a result, stop searching */
/* Found a result, stop searching */
if
(
*
res
)
if
(
*
res
)
goto
out
;
goto
out
;
...
...
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