Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
a03f8d4c
Commit
a03f8d4c
authored
Jun 05, 2014
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress re-entrant calls to dhcp_construct_contexts()
parent
c4a09376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/dhcp6.c
src/dhcp6.c
+10
-0
No files found.
src/dhcp6.c
View file @
a03f8d4c
...
@@ -708,12 +708,20 @@ static int construct_worker(struct in6_addr *local, int prefix,
...
@@ -708,12 +708,20 @@ static int construct_worker(struct in6_addr *local, int prefix,
void
dhcp_construct_contexts
(
time_t
now
)
void
dhcp_construct_contexts
(
time_t
now
)
{
{
static
int
active
=
0
;
struct
dhcp_context
*
context
,
*
tmp
,
**
up
;
struct
dhcp_context
*
context
,
*
tmp
,
**
up
;
struct
cparam
param
;
struct
cparam
param
;
param
.
newone
=
0
;
param
.
newone
=
0
;
param
.
newname
=
0
;
param
.
newname
=
0
;
param
.
now
=
now
;
param
.
now
=
now
;
/* Various calls that we make may end up calling iface_enumerate(), which can then
call us again, We're NOT re-entrant, so ignore a second invokation. */
if
(
active
)
return
;
active
=
1
;
for
(
context
=
daemon
->
dhcp6
;
context
;
context
=
context
->
next
)
for
(
context
=
daemon
->
dhcp6
;
context
;
context
=
context
->
next
)
if
(
context
->
flags
&
CONTEXT_CONSTRUCTED
)
if
(
context
->
flags
&
CONTEXT_CONSTRUCTED
)
context
->
flags
|=
CONTEXT_GC
;
context
->
flags
|=
CONTEXT_GC
;
...
@@ -771,6 +779,8 @@ void dhcp_construct_contexts(time_t now)
...
@@ -771,6 +779,8 @@ void dhcp_construct_contexts(time_t now)
/* Not doing DHCP, so no lease system, manage alarms for ra only */
/* Not doing DHCP, so no lease system, manage alarms for ra only */
send_alarm
(
periodic_ra
(
now
),
now
);
send_alarm
(
periodic_ra
(
now
),
now
);
}
}
active
=
0
;
}
}
#endif
#endif
...
...
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