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
zzha zzha
OpenXG-RAN
Commits
3c85a880
Commit
3c85a880
authored
Sep 28, 2020
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s1ap encoding: return -1 on error
parent
bc73585d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
openair3/S1AP/s1ap_eNB_encoder.c
openair3/S1AP/s1ap_eNB_encoder.c
+6
-0
No files found.
openair3/S1AP/s1ap_eNB_encoder.c
View file @
3c85a880
...
...
@@ -137,6 +137,8 @@ int s1ap_eNB_encode_initiating(S1AP_S1AP_PDU_t *pdu,
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_ALIGNED_CANONICAL_PER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
*
buffer
=
res
.
buffer
;
*
len
=
res
.
result
.
encoded
;
if
(
res
.
result
.
encoded
==
-
1
)
return
-
1
;
return
0
;
}
...
...
@@ -189,6 +191,8 @@ int s1ap_eNB_encode_successfull_outcome(S1AP_S1AP_PDU_t *pdu,
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_ALIGNED_CANONICAL_PER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
*
buffer
=
res
.
buffer
;
*
len
=
res
.
result
.
encoded
;
if
(
res
.
result
.
encoded
==
-
1
)
return
-
1
;
return
0
;
}
...
...
@@ -218,5 +222,7 @@ int s1ap_eNB_encode_unsuccessfull_outcome(S1AP_S1AP_PDU_t *pdu,
res
=
asn_encode_to_new_buffer
(
NULL
,
ATS_ALIGNED_CANONICAL_PER
,
&
asn_DEF_S1AP_S1AP_PDU
,
pdu
);
*
buffer
=
res
.
buffer
;
*
len
=
res
.
result
.
encoded
;
if
(
res
.
result
.
encoded
==
-
1
)
return
-
1
;
return
0
;
}
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