diff --git a/scion/cmd/scion/ping.go b/scion/cmd/scion/ping.go index 6aa0d1d7f9..987a307398 100644 --- a/scion/cmd/scion/ping.go +++ b/scion/cmd/scion/ping.go @@ -206,7 +206,7 @@ On other errors, ping will exit with code 2. Timeout: flags.timeout, Local: local, Remote: remote, - PayloadSize: int(flags.size), + PayloadSize: pldSize, ErrHandler: func(err error) { fmt.Fprintf(os.Stderr, "ERROR: %s\n", err) },