Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
radsecproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
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
eduroam
radsecproxy
Commits
eb436860
Commit
eb436860
authored
Jan 16, 2015
by
Linus Nordberg
Committed by
Linus Nordberg
Jan 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix use-after-free in _internal_removeserversubrealms().
Patch by Stephen Röttger.
parent
ed86dbc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
radsecproxy.c
radsecproxy.c
+5
-2
No files found.
radsecproxy.c
View file @
eb436860
...
...
@@ -790,6 +790,7 @@ int hasdynamicserver(struct list *srvconfs) {
void
_internal_removeserversubrealms
(
struct
list
*
realmlist
,
struct
clsrvconf
*
srv
)
{
struct
list_node
*
entry
,
*
entry2
;
struct
realm
*
realm
;
struct
list
*
srvconfs
;
for
(
entry
=
list_first
(
realmlist
);
entry
;)
{
realm
=
newrealmref
((
struct
realm
*
)
entry
->
data
);
...
...
@@ -797,16 +798,18 @@ void _internal_removeserversubrealms(struct list *realmlist, struct clsrvconf *s
entry
=
list_next
(
entry
);
if
(
realm
->
srvconfs
)
{
srvconfs
=
realm
->
srvconfs
;
for
(
entry2
=
list_first
(
realm
->
srvconfs
);
entry2
;
entry2
=
list_next
(
entry2
))
if
(
entry2
->
data
==
srv
)
freerealm
(
realm
);
list_removedata
(
realm
->
srvconfs
,
srv
);
list_removedata
(
srvconfs
,
srv
);
}
if
(
realm
->
accsrvconfs
)
{
srvconfs
=
realm
->
accsrvconfs
;
for
(
entry2
=
list_first
(
realm
->
accsrvconfs
);
entry2
;
entry2
=
list_next
(
entry2
))
if
(
entry2
->
data
==
srv
)
freerealm
(
realm
);
list_removedata
(
realm
->
acc
srvconfs
,
srv
);
list_removedata
(
srvconfs
,
srv
);
}
/* remove subrealm if no dynamic servers left */
...
...
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