hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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);