rspro_util: DER encoder returns size in bytes, no need to divide by 8
Change-Id: I559afe17981a77024b6d14058f89c5f103767939
This commit is contained in:
parent
137c4402d9
commit
d5c5c0b790
|
@ -29,7 +29,7 @@ struct msgb *rspro_enc_msg(RsproPDU_t *pdu)
|
||||||
if (rval.encoded < 0) {
|
if (rval.encoded < 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
msgb_put(msg, rval.encoded/8);
|
msgb_put(msg, rval.encoded);
|
||||||
|
|
||||||
ASN_STRUCT_FREE(asn_DEF_RsproPDU, pdu);
|
ASN_STRUCT_FREE(asn_DEF_RsproPDU, pdu);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue