The packet information does not reset after packet transmit, this may cause some problems such as following DATA chunk be sent without AUTH chunk, even if the authentication of DATA chunk has been requested by the peer. Signed-off-by: Wei Yongjun <yjwei@xxxxxxxxxxxxxx> --- net/sctp/output.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/net/sctp/output.c b/net/sctp/output.c index b94c211..fbbfbce 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c @@ -599,6 +599,11 @@ int sctp_packet_transmit(struct sctp_packet *packet) out: packet->size = packet->overhead; + packet->has_cookie_echo = 0; + packet->has_sack = 0; + packet->has_data = 0; + packet->ipfragok = 0; + packet->auth = NULL; return err; no_route: kfree_skb(nskb); -- 1.6.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html