aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/feat.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/feat.c')
-rw-r--r--net/dccp/feat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dccp/feat.c b/net/dccp/feat.c
index b859722fba72..9399554878cc 100644
--- a/net/dccp/feat.c
+++ b/net/dccp/feat.c
@@ -383,6 +383,10 @@ static int __feat_register_sp(struct list_head *fn, u8 feat, u8 is_local,
383 !dccp_feat_sp_list_ok(feat, sp_val, sp_len)) 383 !dccp_feat_sp_list_ok(feat, sp_val, sp_len))
384 return -EINVAL; 384 return -EINVAL;
385 385
386 /* Avoid negotiating alien CCIDs by only advertising supported ones */
387 if (feat == DCCPF_CCID && !ccid_support_check(sp_val, sp_len))
388 return -EOPNOTSUPP;
389
386 if (dccp_feat_clone_sp_val(&fval, sp_val, sp_len)) 390 if (dccp_feat_clone_sp_val(&fval, sp_val, sp_len))
387 return -ENOMEM; 391 return -ENOMEM;
388 392