removed unnecessary encoding

This commit is contained in:
gilteixeira 2023-04-18 11:42:00 +01:00
parent 36f86e78e6
commit 01a36bc969
1 changed files with 1 additions and 10 deletions

View File

@ -180,16 +180,7 @@ int evrsrm_recv(EV_RSR_t *evrsr_request) {
bpr->id = id; bpr->id = id;
fmi->id = id; fmi->id = id;
asn_enc_rval_t enc = uper_encode_to_buffer(&asn_DEF_FacilitiesIndication, NULL, fi, tr_oer + 1, 1024); asn_enc_rval_t enc = uper_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, tr_oer, 1024);
if (enc.encoded == -1) {
log_error("[ca] failed encoding facilities indication (%s)", enc.failed_type->name);
rv = 1;
goto cleanup;
}
tr->choice.packet.choice.btp.data.size = (enc.encoded + 7) / 8;
enc = uper_encode_to_buffer(&asn_DEF_TransportRequest, NULL, tr, tr_oer, 1024);
if (enc.encoded == -1) { if (enc.encoded == -1) {
log_error("[ev] failed encoding transport request (%s)", enc.failed_type->name); log_error("[ev] failed encoding transport request (%s)", enc.failed_type->name);
rv = 1; rv = 1;