diff options
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r-- | net/dccp/proto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index b4b10cbd8880..46cb3490d48e 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -278,6 +278,9 @@ static inline int dccp_listen_start(struct sock *sk, int backlog) | |||
278 | struct dccp_sock *dp = dccp_sk(sk); | 278 | struct dccp_sock *dp = dccp_sk(sk); |
279 | 279 | ||
280 | dp->dccps_role = DCCP_ROLE_LISTEN; | 280 | dp->dccps_role = DCCP_ROLE_LISTEN; |
281 | /* do not start to listen if feature negotiation setup fails */ | ||
282 | if (dccp_feat_finalise_settings(dp)) | ||
283 | return -EPROTO; | ||
281 | return inet_csk_listen_start(sk, backlog); | 284 | return inet_csk_listen_start(sk, backlog); |
282 | } | 285 | } |
283 | 286 | ||