slirp: Handle error returns from sosendoob()
commit75cb298d905030fca897ea1d80e409c7f7e3e5ea
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Jul 2017 11:12:25 +0000 (14 12:12 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 15 Jul 2017 12:28:25 +0000 (15 14:28 +0200)
tree225d193e413a20f4f5aaaedbbdd203942f6d8c26
parent0b466065eba289c437e3edc2e97144fc5cd6a889
slirp: Handle error returns from sosendoob()

sosendoob() can return a failure code, but all its callers ignore it.
This is OK in sbappend(), as the comment there states -- we will try
again later in sowrite(). Add a (void) cast to tell Coverity so.
In sowrite() we do need to check the return value -- we should handle
a write failure in sosendoob() the same way we handle a write failure
for the normal data.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
slirp/sbuf.c
slirp/socket.c