Fix error description.
MFC after: 1 week
This commit is contained in:
parent
c96d7c373e
commit
ef9095c72a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363011
@ -2745,7 +2745,7 @@ sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length,
|
|||||||
struct mbuf *op_err;
|
struct mbuf *op_err;
|
||||||
char msg[SCTP_DIAG_INFO_LEN];
|
char msg[SCTP_DIAG_INFO_LEN];
|
||||||
|
|
||||||
SCTP_SNPRINTF(msg, sizeof(msg), "%s", "I-DATA chunk received when DATA was negotiated");
|
SCTP_SNPRINTF(msg, sizeof(msg), "%s", "DATA chunk received when I-DATA was negotiated");
|
||||||
op_err = sctp_generate_cause(SCTP_CAUSE_PROTOCOL_VIOLATION, msg);
|
op_err = sctp_generate_cause(SCTP_CAUSE_PROTOCOL_VIOLATION, msg);
|
||||||
stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_20;
|
stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_20;
|
||||||
sctp_abort_an_association(inp, stcb, op_err, SCTP_SO_NOT_LOCKED);
|
sctp_abort_an_association(inp, stcb, op_err, SCTP_SO_NOT_LOCKED);
|
||||||
@ -2756,7 +2756,7 @@ sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length,
|
|||||||
struct mbuf *op_err;
|
struct mbuf *op_err;
|
||||||
char msg[SCTP_DIAG_INFO_LEN];
|
char msg[SCTP_DIAG_INFO_LEN];
|
||||||
|
|
||||||
SCTP_SNPRINTF(msg, sizeof(msg), "%s", "DATA chunk received when I-DATA was negotiated");
|
SCTP_SNPRINTF(msg, sizeof(msg), "%s", "I-DATA chunk received when DATA was negotiated");
|
||||||
op_err = sctp_generate_cause(SCTP_CAUSE_PROTOCOL_VIOLATION, msg);
|
op_err = sctp_generate_cause(SCTP_CAUSE_PROTOCOL_VIOLATION, msg);
|
||||||
stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_21;
|
stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_21;
|
||||||
sctp_abort_an_association(inp, stcb, op_err, SCTP_SO_NOT_LOCKED);
|
sctp_abort_an_association(inp, stcb, op_err, SCTP_SO_NOT_LOCKED);
|
||||||
|
Loading…
Reference in New Issue
Block a user