From 244b2c5ca8b14627e4a17755e5922221e121c771 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Wed, 09 Oct 2024 06:15:07 +0000 Subject: [PATCH] change system file --- 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