diff options
Diffstat (limited to 'net/sctp/auth.c')
| -rw-r--r-- | net/sctp/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/auth.c b/net/sctp/auth.c index 6d5fa6bb371b..6d89e35307aa 100644 --- a/net/sctp/auth.c +++ b/net/sctp/auth.c | |||
| @@ -631,7 +631,7 @@ static int __sctp_auth_cid(sctp_cid_t chunk, struct sctp_chunks_param *param) | |||
| 631 | int found = 0; | 631 | int found = 0; |
| 632 | int i; | 632 | int i; |
| 633 | 633 | ||
| 634 | if (!param) | 634 | if (!param || param->param_hdr.length == 0) |
| 635 | return 0; | 635 | return 0; |
| 636 | 636 | ||
| 637 | len = ntohs(param->param_hdr.length) - sizeof(sctp_paramhdr_t); | 637 | len = ntohs(param->param_hdr.length) - sizeof(sctp_paramhdr_t); |
