diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-06-05 17:19:35 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-07-15 14:28:25 +0200 |
commit | 0b466065eba289c437e3edc2e97144fc5cd6a889 (patch) | |
tree | e4fe50d73589d8ee0bd2c9b671ad4d0cda876bcd /hw/misc/imx_ccm.c | |
parent | 12dccfe4f57ead8166567ec8a60d2ce91e266f04 (diff) |
slirp: Handle error returns from slirp_send() in sosendoob()
The code in sosendoob() assumes that slirp_send() always
succeeds, but it might return an OS error code (for instance
if the other end has disconnected). Catch these and return
the caller either -1 on error or the number of urgent bytes
actually written. (None of the callers check this return
value currently, though.)
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>
Diffstat (limited to 'hw/misc/imx_ccm.c')
0 files changed, 0 insertions, 0 deletions