From 12d7f507b4b282143b05683df7d80b126782b152 Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Sun, 11 Nov 2007 23:57:49 +0100 Subject: [PATCH] --- yaml --- r: 73597 b: refs/heads/master c: 9abed245a6dc94c32b2f45a1ecc51a0829d11470 h: refs/heads/master i: 73595: c1def571ee9e36133e77f479a4b4875ca7232535 v: v3 --- [refs] | 2 +- trunk/net/sctp/sm_statefuns.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index a67cc974d4ea..e61811733784 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7d54dc6876b83d6bb75b8f7e865b7b9051056d22 +refs/heads/master: 9abed245a6dc94c32b2f45a1ecc51a0829d11470 diff --git a/trunk/net/sctp/sm_statefuns.c b/trunk/net/sctp/sm_statefuns.c index a66075a70f29..5ebbe808d801 100644 --- a/trunk/net/sctp/sm_statefuns.c +++ b/trunk/net/sctp/sm_statefuns.c @@ -4064,11 +4064,6 @@ static sctp_disposition_t sctp_sf_abort_violation( struct sctp_chunk *chunk = arg; struct sctp_chunk *abort = NULL; - /* Make the abort chunk. */ - abort = sctp_make_abort_violation(asoc, chunk, payload, paylen); - if (!abort) - goto nomem; - /* SCTP-AUTH, Section 6.3: * It should be noted that if the receiver wants to tear * down an association in an authenticated way only, the @@ -4083,6 +4078,11 @@ static sctp_disposition_t sctp_sf_abort_violation( if (sctp_auth_recv_cid(SCTP_CID_ABORT, asoc)) goto discard; + /* Make the abort chunk. */ + abort = sctp_make_abort_violation(asoc, chunk, payload, paylen); + if (!abort) + goto nomem; + if (asoc) { sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(abort)); SCTP_INC_STATS(SCTP_MIB_OUTCTRLCHUNKS);