Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=555d3d5d2be13675490a80df0d7961551822ef1f
Commit:     555d3d5d2be13675490a80df0d7961551822ef1f
Parent:     8ee4be37e8ac28e79ae673d441e83c1f51e7ecfd
Author:     Vlad Yasevich <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 29 08:56:16 2007 -0500
Committer:  Vlad Yasevich <[EMAIL PROTECTED]>
CommitDate: Thu Nov 29 10:17:42 2007 -0500

    SCTP: Fix chunk acceptance when no authenticated chunks were listed.
    
    In the case where no autheticated chunks were specified, we were still
    trying to verify that a given chunk needs authentication and doing so
    incorrectly.  Add a check for parameter length to make sure we don't
    try to use an empty auth_chunks parameter to verify against.
    
    Signed-off-by: Vlad Yasevich <[EMAIL PROTECTED]>
---
 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 6d5fa6b..6d89e35 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)
        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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to