slirp: Fix spurious error report when sending directly
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 31 May 2018 19:24:19 +0000 (21:24 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 1 Jun 2018 14:45:49 +0000 (16:45 +0200)
commitc7950fb3f3c710a70ac1411b894bed854628a5e1
tree7e66e679647547bd58ffa4b8b36f56ce5e901b6d
parent9be4af13305f24d2dabf94bb53e6b65c76d08bb2
slirp: Fix spurious error report when sending directly

Move check to where it actually is useful, and reduce scope of 'len'
variable along the way.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
slirp/socket.c