parent
789f81f048
commit
e0959c5293
2
asn.cpp
2
asn.cpp
|
|
@ -123,7 +123,7 @@ size_t BERDecodeOctetString(BufferedTransformation &bt, SecByteBlock &str)
|
||||||
if (!BERLengthDecode(bt, bc))
|
if (!BERLengthDecode(bt, bc))
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
str.resize(bc);
|
str.New(bc);
|
||||||
if (bc != bt.Get(str, bc))
|
if (bc != bt.Get(str, bc))
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
return bc;
|
return bc;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue