1
0
mirror of https://github.com/open-simh/simh.git synced 2026-02-26 17:03:56 +00:00

SLIRP: Silence Coverity error

This commit is contained in:
Mark Pizzolato
2019-05-28 12:45:37 -07:00
parent 6b3bff56b3
commit 7c27f77beb

View File

@@ -632,7 +632,7 @@ tcp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr,
(listen(s,1) == SOCKET_ERROR)) {
int tmperrno = errno; /* Don't clobber the real reason we failed */
if (s != -1)
if (s != SOCKET_ERROR)
closesocket(s);
sofree(so);
fprintf (stderr, "Socket Error %d", tmperrno);