diff options
Diffstat (limited to 'net/sctp/bind_addr.c')
| -rw-r--r-- | net/sctp/bind_addr.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c index 59e653b528b1..6b95d3ba8fe1 100644 --- a/net/sctp/bind_addr.c +++ b/net/sctp/bind_addr.c @@ -73,6 +73,12 @@ int sctp_bind_addr_copy(struct net *net, struct sctp_bind_addr *dest,  		}  	} +	/* 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);  |