diff --git a/src/server.c b/src/server.c index 117f10b..8512152 100644 --- a/src/server.c +++ b/src/server.c @@ -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