Message ID | 20150715220710.GB30757@codemonkey.org.uk |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c index 60021d0d9326..d53cba9c1dfd 100644 --- a/net/ipv4/inet_connection_sock.c +++ b/net/ipv4/inet_connection_sock.c @@ -814,11 +814,15 @@ int inet_csk_listen_start(struct sock *sk, const int nr_table_entries) inet->inet_sport = htons(inet->inet_num); sk_dst_reset(sk); + if (sk->sk_prot->hash == NULL) { + printk("sk->sk_prot->hash WAS NULL!\n"); + goto out; + } sk->sk_prot->hash(sk); return 0; } - +out: sk->sk_state = TCP_CLOSE; __reqsk_queue_destroy(&icsk->icsk_accept_queue); return -EADDRINUSE;