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
8fb86a37
Commit
8fb86a37
authored
May 03, 2013
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile.c:config_network_ipv6_gateway: only define gw in needed scope
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
bec695f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
confile.c
src/lxc/confile.c
+2
-1
No files found.
src/lxc/confile.c
View file @
8fb86a37
...
@@ -776,7 +776,6 @@ static int config_network_ipv6_gateway(const char *key, const char *value,
...
@@ -776,7 +776,6 @@ static int config_network_ipv6_gateway(const char *key, const char *value,
struct
lxc_conf
*
lxc_conf
)
struct
lxc_conf
*
lxc_conf
)
{
{
struct
lxc_netdev
*
netdev
;
struct
lxc_netdev
*
netdev
;
struct
in6_addr
*
gw
;
netdev
=
network_netdev
(
key
,
value
,
&
lxc_conf
->
network
);
netdev
=
network_netdev
(
key
,
value
,
&
lxc_conf
->
network
);
if
(
!
netdev
)
if
(
!
netdev
)
...
@@ -791,6 +790,8 @@ static int config_network_ipv6_gateway(const char *key, const char *value,
...
@@ -791,6 +790,8 @@ static int config_network_ipv6_gateway(const char *key, const char *value,
netdev
->
ipv6_gateway
=
NULL
;
netdev
->
ipv6_gateway
=
NULL
;
netdev
->
ipv6_gateway_auto
=
true
;
netdev
->
ipv6_gateway_auto
=
true
;
}
else
{
}
else
{
struct
in6_addr
*
gw
;
gw
=
malloc
(
sizeof
(
*
gw
));
gw
=
malloc
(
sizeof
(
*
gw
));
if
(
!
gw
)
{
if
(
!
gw
)
{
SYSERROR
(
"failed to allocate ipv6 gateway address"
);
SYSERROR
(
"failed to allocate ipv6 gateway address"
);
...
...
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