summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_input.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-05-13 16:56:16 +0000
committertuexen <tuexen@FreeBSD.org>2012-05-13 16:56:16 +0000
commitabe6735879be578b6996b2fc0ead2dac663118ad (patch)
tree71f11bbb0d503b2abee0abb7201588683f0a4fd4 /sys/netinet/sctp_input.c
parent3a7a58a884dbe40a6ccd2e5168783c13fad81e93 (diff)
downloadFreeBSD-src-abe6735879be578b6996b2fc0ead2dac663118ad.zip
FreeBSD-src-abe6735879be578b6996b2fc0ead2dac663118ad.tar.gz
Use ECONNABORTED in cases where the ABORT was sent to the peer.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_input.c')
-rw-r--r--sys/netinet/sctp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c
index a753556..35652af 100644
--- a/sys/netinet/sctp_input.c
+++ b/sys/netinet/sctp_input.c
@@ -782,7 +782,7 @@ sctp_handle_abort(struct sctp_abort_chunk *abort,
/* stop any receive timers */
sctp_timer_stop(SCTP_TIMER_TYPE_RECV, stcb->sctp_ep, stcb, net, SCTP_FROM_SCTP_INPUT + SCTP_LOC_6);
/* notify user of the abort and clean up... */
- sctp_abort_notification(stcb, error, abort, SCTP_SO_NOT_LOCKED);
+ sctp_abort_notification(stcb, 1, error, abort, SCTP_SO_NOT_LOCKED);
/* free the tcb */
SCTP_STAT_INCR_COUNTER32(sctps_aborted);
if ((SCTP_GET_STATE(&stcb->asoc) == SCTP_STATE_OPEN) ||
@@ -1173,7 +1173,7 @@ sctp_handle_error(struct sctp_chunkhdr *ch,
asoc->stale_cookie_count++;
if (asoc->stale_cookie_count >
asoc->max_init_times) {
- sctp_abort_notification(stcb, 0, NULL, SCTP_SO_NOT_LOCKED);
+ sctp_abort_notification(stcb, 0, 0, NULL, SCTP_SO_NOT_LOCKED);
/* now free the asoc */
#if defined (__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
so = SCTP_INP_SO(stcb->sctp_ep);
OpenPOWER on IntegriCloud