mirror of
https://repo.or.cz/socat.git
synced 2025-07-10 22:13:00 +00:00
AIX: Fixed runtime issues
This commit is contained in:
parent
967e2b24b5
commit
e1a2e37480
4 changed files with 20 additions and 12 deletions
|
@ -2219,8 +2219,10 @@ xiosocket(struct opt *opts, int pf, int socktype, int proto, int msglevel) {
|
|||
retropt_int(opts, OPT_SO_PROTOTYPE, &proto);
|
||||
result = Socket(pf, socktype, proto);
|
||||
if (result < 0) {
|
||||
int _errno = errno;
|
||||
Msg4(msglevel, "socket(%d, %d, %d): %s",
|
||||
pf, socktype, proto, strerror(errno));
|
||||
errno = _errno;
|
||||
return -1;
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue