Skip to content
GitLab
Menu
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
62957b97
Commit
62957b97
authored
May 04, 2018
by
Robert Schmidt
Browse files
bugfix FlexRAN: only write to file if file is not null
parent
1e9f3235
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/ENB_APP/flexran_agent_common.c
View file @
62957b97
...
...
@@ -414,8 +414,14 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
FILE
*
f
;
f
=
fopen
(
target
,
"wb"
);
fwrite
(
control_delegation_msg
->
payload
.
data
,
control_delegation_msg
->
payload
.
len
,
1
,
f
);
fclose
(
f
);
if
(
f
)
{
fwrite
(
control_delegation_msg
->
payload
.
data
,
control_delegation_msg
->
payload
.
len
,
1
,
f
);
fclose
(
f
);
}
else
{
LOG_W
(
FLEXRAN_AGENT
,
"[%d] can not write control delegation data to %s
\n
"
,
mod_id
,
target
);
}
// long time_elapsed_nanos = timer_end(vartime);
*
msg
=
NULL
;
...
...
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