Fix SAEM encoded size
This commit is contained in:
parent
d84794d539
commit
1a44f6040c
2
src/sa.c
2
src/sa.c
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue