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
canghaiwuhen
OpenXG-RAN
Commits
efd3e6fc
Commit
efd3e6fc
authored
Apr 02, 2020
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix openair3/NAS/UE cppcheck error
parent
779d5db4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
openair3/NAS/UE/EMM/SAP/emm_as.c
openair3/NAS/UE/EMM/SAP/emm_as.c
+2
-2
openair3/NAS/UE/EMM/SecurityModeControl.c
openair3/NAS/UE/EMM/SecurityModeControl.c
+7
-7
No files found.
openair3/NAS/UE/EMM/SAP/emm_as.c
View file @
efd3e6fc
...
@@ -443,15 +443,15 @@ static int _emm_as_data_ind(nas_user_t *user, const emm_as_data_t *msg, int *emm
...
@@ -443,15 +443,15 @@ static int _emm_as_data_ind(nas_user_t *user, const emm_as_data_t *msg, int *emm
EPS_MOBILITY_MANAGEMENT_MESSAGE
)
{
EPS_MOBILITY_MANAGEMENT_MESSAGE
)
{
/* Process EMM data */
/* Process EMM data */
rc
=
_emm_as_recv
(
user
,
plain_msg
,
bytes
,
emm_cause
);
rc
=
_emm_as_recv
(
user
,
plain_msg
,
bytes
,
emm_cause
);
free
(
plain_msg
);
}
else
if
(
header
.
protocol_discriminator
==
}
else
if
(
header
.
protocol_discriminator
==
EPS_SESSION_MANAGEMENT_MESSAGE
)
{
EPS_SESSION_MANAGEMENT_MESSAGE
)
{
const
OctetString
data
=
{
bytes
,
(
uint8_t
*
)
plain_msg
};
const
OctetString
data
=
{
bytes
,
(
uint8_t
*
)
plain_msg
};
/* Foward ESM data to EPS session management */
/* Foward ESM data to EPS session management */
rc
=
lowerlayer_data_ind
(
user
,
&
data
);
rc
=
lowerlayer_data_ind
(
user
,
&
data
);
}
free
(
plain_msg
);
free
(
plain_msg
);
}
}
}
}
else
{
}
else
{
/* Process successfull lower layer transfer indication */
/* Process successfull lower layer transfer indication */
rc
=
lowerlayer_success
(
user
);
rc
=
lowerlayer_success
(
user
);
...
...
openair3/NAS/UE/EMM/SecurityModeControl.c
View file @
efd3e6fc
...
@@ -296,6 +296,8 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
...
@@ -296,6 +296,8 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
else
{
else
{
/* Setup EMM cause code */
/* Setup EMM cause code */
emm_cause
=
EMM_CAUSE_SECURITY_MODE_REJECTED
;
emm_cause
=
EMM_CAUSE_SECURITY_MODE_REJECTED
;
}
}
/* Release security mode control internal data */
/* Release security mode control internal data */
if
(
security_data
->
kenb
.
value
)
{
if
(
security_data
->
kenb
.
value
)
{
...
@@ -303,8 +305,6 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
...
@@ -303,8 +305,6 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
security_data
->
kenb
.
value
=
NULL
;
security_data
->
kenb
.
value
=
NULL
;
security_data
->
kenb
.
length
=
0
;
security_data
->
kenb
.
length
=
0
;
}
}
}
}
/* Setup EMM procedure handler to be executed upon receiving
/* Setup EMM procedure handler to be executed upon receiving
* lower layer notification */
* lower layer notification */
...
...
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