Fix SAEM encoded size

This commit is contained in:
emanuel 2021-06-15 13:29:40 +01:00
parent d84794d539
commit 1a44f6040c
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ int mk_saem(facilities_t* facilities, uint8_t* b_saem, uint32_t* b_saem_len) {
rv = 1; rv = 1;
goto cleanup; goto cleanup;
} }
*b_saem_len = (enc.encoded + 7) / 8; *b_saem_len = enc.encoded;
cleanup: cleanup:
ASN_STRUCT_FREE(asn_DEF_SAEM, saem); ASN_STRUCT_FREE(asn_DEF_SAEM, saem);