From 2f7c68cb55ecb7331f2381deb497c27155f32faf Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Wed, 03 Jan 2024 09:43:39 +0000 Subject: [PATCH] update kernel to 5.10.198 --- kernel/net/sctp/bind_addr.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/kernel/net/sctp/bind_addr.c b/kernel/net/sctp/bind_addr.c index 59e653b..6b95d3b 100644 --- a/kernel/net/sctp/bind_addr.c +++ b/kernel/net/sctp/bind_addr.c @@ -73,6 +73,12 @@ } } + /* If somehow no addresses were found that can be used with this + * scope, it's an error. + */ + if (list_empty(&dest->address_list)) + error = -ENETUNREACH; + out: if (error) sctp_bind_addr_clean(dest); -- Gitblit v1.6.2