git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SCTP: Fix chunk acceptance when no authenticated chunks were listed.
[safe/jmp/linux-2.6]
/
net
/
sctp
/
auth.c
diff --git
a/net/sctp/auth.c
b/net/sctp/auth.c
index
6d5fa6b
..
6d89e35
100644
(file)
--- 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)
int found = 0;
int i;
- if (!param)
+ if (!param
|| param->param_hdr.length == 0
)
return 0;
len = ntohs(param->param_hdr.length) - sizeof(sctp_paramhdr_t);