summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_usrreq.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2011-12-10 10:52:54 +0000
committertuexen <tuexen@FreeBSD.org>2011-12-10 10:52:54 +0000
commite98fa27d6f0e51141702230a51b0a8a031a98a9a (patch)
tree123d0bf73a2c156684e93120ccefa3855c080c68 /sys/netinet/sctp_usrreq.c
parent38b99982d5e48f07d1a8c9b486f101a3ea76fa11 (diff)
downloadFreeBSD-src-e98fa27d6f0e51141702230a51b0a8a031a98a9a.zip
FreeBSD-src-e98fa27d6f0e51141702230a51b0a8a031a98a9a.tar.gz
Fix a bug reported by Irene Ruengeler which resulted in not sending
out HEARTBEATs when requested by the user. The HEARTBEATs were only queued, but not actually sent out. MFC after: 2 months.
Diffstat (limited to 'sys/netinet/sctp_usrreq.c')
-rw-r--r--sys/netinet/sctp_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index c638e9c..a0a9f52 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -4727,6 +4727,7 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize,
if (paddrp->spp_flags & SPP_HB_DEMAND) {
/* on demand HB */
sctp_send_hb(stcb, net, SCTP_SO_LOCKED);
+ sctp_chunk_output(inp, stcb, SCTP_OUTPUT_FROM_SOCKOPT, SCTP_SO_LOCKED);
sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, inp, stcb, net);
}
if ((paddrp->spp_flags & SPP_PMTUD_DISABLE) && (paddrp->spp_pathmtu >= SCTP_SMALLEST_PMTU)) {
OpenPOWER on IntegriCloud