mirror of
https://repo.or.cz/socat.git
synced 2025-07-06 13:06:33 +00:00
UNIX-L with bind option logged INTERNAL error
This commit is contained in:
parent
ed11b3d2c5
commit
676888e8cc
3 changed files with 62 additions and 0 deletions
|
@ -123,6 +123,7 @@ static int xioopen_unix_listen(
|
|||
/* we expect the form: filename */
|
||||
const char *name;
|
||||
xiosingle_t *sfd = &xxfd->stream;
|
||||
char *bindstring = NULL;
|
||||
int pf = PF_UNIX;
|
||||
int socktype = SOCK_STREAM;
|
||||
int protocol = 0;
|
||||
|
@ -140,6 +141,12 @@ static int xioopen_unix_listen(
|
|||
}
|
||||
name = argv[1];
|
||||
|
||||
if (retropt_string(opts, OPT_BIND, &bindstring) == 0) {
|
||||
Error2("%s:%s: binds implicitly, bind option not allowed",
|
||||
addrdesc->defname, argv[1]);
|
||||
free(bindstring);
|
||||
}
|
||||
|
||||
sfd->para.socket.un.tight = UNIX_TIGHTSOCKLEN;
|
||||
retropt_socket_pf(opts, &pf);
|
||||
if (sfd->howtoend == END_UNSPEC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue