hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/net/sctp/bind_addr.c
....@@ -73,6 +73,12 @@
7373 }
7474 }
7575
76
+ /* If somehow no addresses were found that can be used with this
77
+ * scope, it's an error.
78
+ */
79
+ if (list_empty(&dest->address_list))
80
+ error = -ENETUNREACH;
81
+
7682 out:
7783 if (error)
7884 sctp_bind_addr_clean(dest);