Fix handling of SOCK_RAW frames

Fix issue handling SOCK_RAW frames wherein patty_ax25_sock_send() is
used instead of patty_ax25_if_send() to send frames through the
interface bound to the socket
This commit is contained in:
XANTRONIX Development 2020-09-22 21:10:14 -05:00 committed by XANTRONIX Industrial
parent bec778de7b
commit 26716a5b2a

View file

@ -2120,7 +2120,7 @@ static int handle_sock_raw(patty_ax25_server *server,
break; break;
} }
if (patty_ax25_sock_send(sock, sock->iface->tx_buf, len) < 0) { if (patty_ax25_if_send(sock->iface, sock->iface->tx_buf, len) < 0) {
goto error_io; goto error_io;
} }
} while (patty_ax25_sock_recv_pending(sock)); } while (patty_ax25_sock_recv_pending(sock));