Skip to content

Commit

Permalink
sctp: Correctly track if AUTH has been bundled.
Browse files Browse the repository at this point in the history
We currently track if AUTH has been bundled using the 'auth'
pointer to the chunk.  However, AUTH is disallowed after DATA
is already in the packet, so we need to instead use the
'has_auth' field.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
  • Loading branch information
Vlad Yasevich committed Sep 4, 2009
1 parent d521c08 commit 4007cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sctp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static sctp_xmit_t sctp_packet_bundle_auth(struct sctp_packet *pkt,
/* See if this is an auth chunk we are bundling or if
* auth is already bundled.
*/
if (chunk->chunk_hdr->type == SCTP_CID_AUTH || pkt->auth)
if (chunk->chunk_hdr->type == SCTP_CID_AUTH || pkt->has_auth)
return retval;

/* if the peer did not request this chunk to be authenticated,
Expand Down

0 comments on commit 4007cc8

Please sign in to comment.