diff options
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index ba1add0b13c3..ca44917872d2 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -5433,6 +5433,8 @@ static long sctp_get_port_local(struct sock *sk, union sctp_addr *addr) | |||
5433 | rover++; | 5433 | rover++; |
5434 | if ((rover < low) || (rover > high)) | 5434 | if ((rover < low) || (rover > high)) |
5435 | rover = low; | 5435 | rover = low; |
5436 | if (inet_is_reserved_local_port(rover)) | ||
5437 | continue; | ||
5436 | index = sctp_phashfn(rover); | 5438 | index = sctp_phashfn(rover); |
5437 | head = &sctp_port_hashtable[index]; | 5439 | head = &sctp_port_hashtable[index]; |
5438 | sctp_spin_lock(&head->lock); | 5440 | sctp_spin_lock(&head->lock); |