Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-AMF
Commits
1449fc56
Commit
1449fc56
authored
Jun 18, 2021
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a crash when AMF authentication failed
parent
6cd3f6be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+6
-2
No files found.
src/amf-app/amf_n1.cpp
View file @
1449fc56
...
...
@@ -1476,8 +1476,12 @@ bool amf_n1::_5g_aka_confirmation_from_ausf(std::shared_ptr<nas_context> &nc,
try
{
ConfirmationDataResponse
confirmationdataresponse
;
nlohmann
::
json
::
parse
(
Response
.
c_str
()).
get_to
(
confirmationdataresponse
);
unsigned
char
*
kseaf_hex
=
format_string_as_hex
(
confirmationdataresponse
.
getKseaf
());
unsigned
char
*
kseaf_hex
=
NULL
;
if
(
confirmationdataresponse
.
getAuthResult
())
kseaf_hex
=
format_string_as_hex
(
confirmationdataresponse
.
getKseaf
());
else
return
false
;
memcpy
(
nc
.
get
()
->
_5g_av
[
0
].
kseaf
,
kseaf_hex
,
32
);
print_buffer
(
"amf_n1"
,
"5G AV: kseaf"
,
nc
.
get
()
->
_5g_av
[
0
].
kseaf
,
32
);
free_wrapper
((
void
**
)
&
kseaf_hex
);
...
...
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