mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-09 16:30:20 +01:00
read 4 bytes when decoding u32
This commit is contained in:
parent
eac426e2f4
commit
ca4fd3b279
@ -44,7 +44,7 @@ func (ber *bigEndianReader) u32() (uint32, error) {
|
||||
if ber.err != nil {
|
||||
return 0, ber.err
|
||||
}
|
||||
four := ber.buf[:2]
|
||||
four := ber.buf[:4]
|
||||
_, err := io.ReadFull(ber.parent, four)
|
||||
if err != nil {
|
||||
ber.err = err
|
||||
|
Loading…
Reference in New Issue
Block a user