fixed BIT STRING value cloning

This commit is contained in:
Lev Walkin 2005-04-13 12:47:35 +00:00
parent 1b59716f36
commit 774ee7ea33
1 changed files with 1 additions and 1 deletions

View File

@ -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);