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
a7bce4ab
Commit
a7bce4ab
authored
May 28, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix assertfatal cause by ue_type!=NOCE
parent
236c416f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
+11
-2
nfapi/open-nFAPI/pnf/src/pnf_p7.c
nfapi/open-nFAPI/pnf/src/pnf_p7.c
+1
-1
nfapi/open-nFAPI/vnf/src/vnf_p7.c
nfapi/open-nFAPI/vnf/src/vnf_p7.c
+1
-1
No files found.
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
View file @
a7bce4ab
...
...
@@ -81,13 +81,22 @@ void* nfapi_p7_allocate(size_t size, nfapi_p7_codec_config_t* config)
if
(
size
==
0
)
return
0
;
void
*
buffer_p
=
NULL
;
if
(
config
&&
config
->
allocate
)
{
return
(
config
->
allocate
)(
size
);
buffer_p
=
(
config
->
allocate
)(
size
);
if
(
buffer_p
!=
NULL
){
memset
(
buffer_p
,
0
,
size
);
}
return
buffer_p
;
}
else
{
return
calloc
(
1
,
size
);
buffer_p
=
calloc
(
1
,
size
);
if
(
buffer_p
!=
NULL
){
memset
(
buffer_p
,
0
,
size
);
}
return
buffer_p
;
}
}
...
...
nfapi/open-nFAPI/pnf/src/pnf_p7.c
View file @
a7bce4ab
...
...
@@ -1536,7 +1536,7 @@ void pnf_handle_p7_message(void *pRecvMsg, int recvMsgLen, pnf_p7_t* pnf_p7, ui
NFAPI_TRACE
(
NFAPI_TRACE_NOTE
,
"Failed to allocate PNF_P7 reassemby buffer len:%d
\n
"
,
length
);
return
;
}
memset
(
pnf_p7
->
reassemby_buffer
,
0
,
length
);
pnf_p7
->
reassemby_buffer_size
=
length
;
}
...
...
nfapi/open-nFAPI/vnf/src/vnf_p7.c
View file @
a7bce4ab
...
...
@@ -1430,7 +1430,7 @@ void vnf_handle_p7_message(void *pRecvMsg, int recvMsgLen, vnf_p7_t* vnf_p7)
NFAPI_TRACE
(
NFAPI_TRACE_NOTE
,
"Failed to allocate VNF_P7 reassemby buffer len:%d
\n
"
,
length
);
return
;
}
memset
(
phy
->
reassembly_buffer
,
0
,
length
);
phy
->
reassembly_buffer_size
=
length
;
}
...
...
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