Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
promise
OpenXG-RAN
Commits
f3dc8d44
Commit
f3dc8d44
authored
Feb 25, 2019
by
tomita.y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem of double free.
parent
2e49f833
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+5
-1
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
+1
-1
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
f3dc8d44
...
...
@@ -769,7 +769,11 @@ pdcp_data_ind(
*/
if
(
nfapi_mode
==
3
)
{
#ifdef UESIM_EXPANSION
((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
inst
=
0
;
if
(
UE_NAS_USE_TUN
)
{
((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
inst
=
ctxt_pP
->
module_id
;
}
else
{
((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
inst
=
0
;
}
#else
((
pdcp_data_ind_header_t
*
)
new_sdu_p
->
data
)
->
inst
=
ctxt_pP
->
module_id
;
#endif
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
View file @
f3dc8d44
...
...
@@ -109,7 +109,7 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t *const ctxt_pP) {
int
pdcp_nb_sdu_sent
=
0
;
int
ret
=
0
;
while
((
sdu_p
=
list_get_head
(
&
pdcp_sdu_list
))
!=
NULL
)
{
while
((
sdu_p
=
list_get_head
(
&
pdcp_sdu_list
))
!=
NULL
&&
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
inst
==
ctxt_pP
->
module_id
)
{
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
inst
=
0
;
int
rb_id
=
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
rb_id
;
int
sizeToWrite
=
sizeof
(
pdcp_data_ind_header_t
)
+
...
...
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