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
常顺宇
OpenXG-RAN
Commits
7b36af05
Commit
7b36af05
authored
Feb 15, 2017
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
openair3/NAS/UE/nas_ue_task.c
openair3/NAS/UE/nas_ue_task.c
+3
-0
targets/COMMON/create_tasks.c
targets/COMMON/create_tasks.c
+4
-3
No files found.
openair3/NAS/UE/nas_ue_task.c
View file @
7b36af05
...
@@ -271,6 +271,9 @@ void *nas_ue_task(void *args_p)
...
@@ -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
)
{
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)
...
@@ -85,9 +85,10 @@ int create_tasks(uint32_t enb_nb, uint32_t ue_nb)
# if defined(NAS_BUILT_IN_UE)
# if defined(NAS_BUILT_IN_UE)
if
(
ue_nb
>
0
)
{
if
(
ue_nb
>
0
)
{
nas_user_container_t
users
;
nas_user_container_t
*
users
=
calloc
(
1
,
sizeof
(
*
users
));
users
.
count
=
ue_nb
;
if
(
users
==
NULL
)
abort
();
if
(
itti_create_task
(
TASK_NAS_UE
,
nas_ue_task
,
&
users
)
<
0
)
{
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
"
);
LOG_E
(
NAS
,
"Create task for NAS UE failed
\n
"
);
return
-
1
;
return
-
1
;
}
}
...
...
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