Use patty_ax25_sock_bind_if() in server_connect()

Use patty_ax25_sock_bind_if() in server_connect() to ensure any other
functions which must take place are attended to when assigning an
interface to a socket
This commit is contained in:
XANTRONIX Development 2020-07-19 22:55:42 -04:00 committed by XANTRONIX Industrial
parent 311a8b106f
commit c2550d075a

View file

@ -740,7 +740,7 @@ static int server_connect(patty_ax25_server *server,
goto error_network_down;
}
iface = sock->iface = route->iface;
patty_ax25_sock_bind_if(sock, iface = route->iface);
/*
* If there is no local address bound to this sock, then bind the