From f5d435d5ca873f41dd2785db0988ed7b962bf8b1 Mon Sep 17 00:00:00 2001 From: Corey Minyard Date: Wed, 20 Dec 2023 21:38:51 -0600 Subject: [PATCH] Use gensio_set_addr_from_child() in ax25 Do it the right way. Signed-off-by: Corey Minyard --- lib/gensio_ax25.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/gensio_ax25.c b/lib/gensio_ax25.c index 43191309..89351e76 100644 --- a/lib/gensio_ax25.c +++ b/lib/gensio_ax25.c @@ -4836,13 +4836,10 @@ ax25_chan_alloc(struct ax25_base *base, const char *const args[], goto out_nomem; gensio_set_is_client(chan->io, true); /* FIXME */ + gensio_set_attr_from_child(chan->io, base->child); gensio_set_is_packet(chan->io, true); gensio_set_is_reliable(chan->io, true); gensio_set_is_mux(chan->io, true); - if (gensio_is_authenticated(base->child)) - gensio_set_is_authenticated(chan->io, true); - if (gensio_is_encrypted(base->child)) - gensio_set_is_encrypted(chan->io, true); ax25_base_lock(base); chan->base = base;