routing: add additional validation to hop payload creation

This commit is contained in:
Carla Kirk-Cohen
2023-11-01 09:54:17 -04:00
parent 585f28c5f5
commit 7db072e020
2 changed files with 93 additions and 7 deletions

View File

@@ -170,7 +170,7 @@ func TestNoForwardingParams(t *testing.T) {
}
var b bytes.Buffer
err := hop.PackHopPayload(&b, 2, false)
err := hop.PackHopPayload(&b, 0, false)
require.NoError(t, err)
}