|
@@ -3865,6 +3865,10 @@ sctp_disposition_t sctp_sf_eat_auth(const struct sctp_endpoint *ep,
|
|
struct sctp_chunk *err_chunk;
|
|
struct sctp_chunk *err_chunk;
|
|
sctp_ierror_t error;
|
|
sctp_ierror_t error;
|
|
|
|
|
|
|
|
+ /* Make sure that the peer has AUTH capable */
|
|
|
|
+ if (!asoc->peer.auth_capable)
|
|
|
|
+ return sctp_sf_unk_chunk(ep, asoc, type, arg, commands);
|
|
|
|
+
|
|
if (!sctp_vtag_verify(chunk, asoc)) {
|
|
if (!sctp_vtag_verify(chunk, asoc)) {
|
|
sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG,
|
|
sctp_add_cmd_sf(commands, SCTP_CMD_REPORT_BAD_TAG,
|
|
SCTP_NULL());
|
|
SCTP_NULL());
|