mirror of
https://repo.or.cz/socat.git
synced 2025-07-07 21:36:32 +00:00
merged: compile problem caused by size_t/socklen_t mismatch; an invalid close() operation was performed
This commit is contained in:
parent
e0c0e66748
commit
448fa74706
4 changed files with 40 additions and 34 deletions
|
@ -554,8 +554,8 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
|
|||
} else
|
||||
#endif /* HAVE_PTY */
|
||||
if (usepipes) {
|
||||
Close(rdpip[1]);
|
||||
Close(wrpip[0]);
|
||||
if (rw == XIO_RDONLY) Close(rdpip[1]);
|
||||
if (rw == XIO_WRONLY) Close(wrpip[0]);
|
||||
} else {
|
||||
Close(sv[1]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue