Merge pull request #94 from libp2p/chore/update

chore: update deps
This commit is contained in:
Steven Allen 2021-03-30 09:50:31 -07:00 committed by GitHub
commit 1ec50360f3
1 changed files with 1 additions and 4 deletions

View File

@ -321,10 +321,7 @@ func (m *NoiseHandshakePayload) Unmarshal(dAtA []byte) error {
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthPayload
}
if (iNdEx + skippy) < 0 {
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthPayload
}
if (iNdEx + skippy) > l {