Browse Source

wire: remove redundant size check from fromwire_var_int

pr-2587
lisa neigut 6 years ago
committed by Rusty Russell
parent
commit
fc0c97d06d
  1. 5
      wire/fromwire.c

5
wire/fromwire.c

@ -103,11 +103,6 @@ bool fromwire_bool(const u8 **cursor, size_t *max)
u64 fromwire_var_int(const u8 **cursor, size_t *max)
{
if (*max < 1) {
fromwire_fail(cursor, max);
return 0;
}
u8 flag = fromwire_u8(cursor, max);
switch(flag) {

Loading…
Cancel
Save