rspro_util: DER encoder returns size in bytes, no need to divide by 8

Change-Id: I559afe17981a77024b6d14058f89c5f103767939
laforge/bankd-fsm-mistake
Harald Welte 5 years ago
parent 137c4402d9
commit d5c5c0b790
  1. 2
      src/rspro_util.c

@ -29,7 +29,7 @@ struct msgb *rspro_enc_msg(RsproPDU_t *pdu)
if (rval.encoded < 0) {
return NULL;
}
msgb_put(msg, rval.encoded/8);
msgb_put(msg, rval.encoded);
ASN_STRUCT_FREE(asn_DEF_RsproPDU, pdu);

Loading…
Cancel
Save