fix: large value_data length in api crashes server
This commit is contained in:
committed by
Christien Rioux
parent
513116e672
commit
0ce19d85fa
@@ -25,7 +25,7 @@ pub fn decode_signed_value_data(
|
||||
let signature = decode_signature512(&sr);
|
||||
|
||||
Ok(SignedValueData::new(
|
||||
ValueData::new_with_seq(seq, data, writer),
|
||||
ValueData::new_with_seq(seq, data, writer).map_err(RPCError::protocol)?,
|
||||
signature,
|
||||
))
|
||||
}
|
||||
|
Reference in New Issue
Block a user