Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
7b36af05
Commit
7b36af05
authored
Feb 15, 2017
by
Cédric Roux
Browse files
bugfix: variable was on the stack
Guess what happens when we return from the function...
parent
f52a42ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
openair3/NAS/UE/nas_ue_task.c
View file @
7b36af05
...
...
@@ -271,6 +271,9 @@ void *nas_ue_task(void *args_p)
}
}
}
free
(
users
);
return
NULL
;
}
nas_user_t
*
find_user_from_fd
(
nas_user_container_t
*
users
,
int
fd
)
{
...
...
targets/COMMON/create_tasks.c
View file @
7b36af05
...
...
@@ -85,9 +85,10 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb)
# if defined(NAS_BUILT_IN_UE)
if
(
ue_nb
>
0
)
{
nas_user_container_t
users
;
users
.
count
=
ue_nb
;
if
(
itti_create_task
(
TASK_NAS_UE
,
nas_ue_task
,
&
users
)
<
0
)
{
nas_user_container_t
*
users
=
calloc
(
1
,
sizeof
(
*
users
));
if
(
users
==
NULL
)
abort
();
users
->
count
=
ue_nb
;
if
(
itti_create_task
(
TASK_NAS_UE
,
nas_ue_task
,
users
)
<
0
)
{
LOG_E
(
NAS
,
"Create task for NAS UE failed
\n
"
);
return
-
1
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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