Commit 774ee7ea authored by Lev Walkin's avatar Lev Walkin

fixed BIT STRING value cloning

parent 1b59716f
......@@ -139,7 +139,7 @@ asn1p_value_clone(asn1p_value_t *v) {
if(clone) clone->type = ATV_UNPARSED;
return clone;
case ATV_BITVECTOR:
return asn1p_value_frombuf(v->value.binary_vector.bits,
return asn1p_value_frombits(v->value.binary_vector.bits,
v->value.binary_vector.size_in_bits, 1);
case ATV_REFERENCED:
return asn1p_value_fromref(v->value.reference, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment