hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
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);