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
spbro
OpenXG-RAN
Commits
2b900616
Commit
2b900616
authored
Mar 13, 2024
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resourceLeak
parent
686da85d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
openair2/RRC/NR/rrc_gNB_nsa.c
openair2/RRC/NR/rrc_gNB_nsa.c
+2
-1
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+2
-1
No files found.
openair2/RRC/NR/rrc_gNB_nsa.c
View file @
2b900616
...
...
@@ -138,7 +138,7 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc, rrc_gNB_ue_context_t *ue_context_p, x2a
FILE
*
f
=
NULL
;
if
(
uecap_file
)
f
=
fopen
(
uecap_file
,
"r"
);
if
(
f
)
{
if
(
f
)
{
size_t
size
=
fread
(
UE_NR_Capability_xer
,
1
,
sizeof
UE_NR_Capability_xer
,
f
);
if
(
size
==
0
||
size
==
sizeof
UE_NR_Capability_xer
)
LOG_E
(
NR_RRC
,
"UE Capabilities XER file %s is too large (%ld)
\n
"
,
uecap_file
,
size
);
...
...
@@ -148,6 +148,7 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc, rrc_gNB_ue_context_t *ue_context_p, x2a
assert
(
dec_rval
.
code
==
RC_OK
);
xer_fprint
(
stdout
,
&
asn_DEF_NR_UE_NR_Capability
,(
void
*
)
UE_Capability_nr
);
}
fclose
(
f
);
}
else
LOG_E
(
NR_RRC
,
"Could not open UE Capabilities input file. Not handling OAI UE Capabilities.
\n
"
);
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
2b900616
...
...
@@ -315,7 +315,7 @@ NR_UE_RRC_INST_t* nr_rrc_init_ue(char* uecap_file, int nb_inst)
FILE
*
f
=
NULL
;
if
(
uecap_file
)
f
=
fopen
(
uecap_file
,
"r"
);
if
(
f
)
{
if
(
f
)
{
char
UE_NR_Capability_xer
[
65536
];
size_t
size
=
fread
(
UE_NR_Capability_xer
,
1
,
sizeof
UE_NR_Capability_xer
,
f
);
if
(
size
==
0
||
size
==
sizeof
UE_NR_Capability_xer
)
{
...
...
@@ -326,6 +326,7 @@ NR_UE_RRC_INST_t* nr_rrc_init_ue(char* uecap_file, int nb_inst)
xer_decode
(
0
,
&
asn_DEF_NR_UE_NR_Capability
,
(
void
*
)
&
rrc
->
UECap
.
UE_NR_Capability
,
UE_NR_Capability_xer
,
size
);
assert
(
dec_rval
.
code
==
RC_OK
);
}
fclose
(
f
);
}
memset
(
&
rrc
->
timers_and_constants
,
0
,
sizeof
(
rrc
->
timers_and_constants
));
...
...
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