Return ENOTSUP on connect() to raw sockets
This commit is contained in:
parent
b2d3d3e03f
commit
1d03b2883a
1 changed files with 4 additions and 0 deletions
|
@ -791,6 +791,10 @@ static int server_connect(patty_ax25_server *server,
|
|||
return respond_connect(client, -1, EBADF);
|
||||
}
|
||||
|
||||
if (sock->type == PATTY_AX25_SOCK_RAW) {
|
||||
return respond_connect(client, -1, ENOTSUP);
|
||||
}
|
||||
|
||||
switch (sock->state) {
|
||||
case PATTY_AX25_SOCK_LISTENING:
|
||||
return respond_connect(client, -1, EINVAL);
|
||||
|
|
Loading…
Add table
Reference in a new issue