From ee7f9857745009a1f4c006635a92f26e322496dc Mon Sep 17 00:00:00 2001 From: Randall Stewart Date: Mon, 23 Apr 2007 00:51:49 +0000 Subject: [PATCH] Fixes cut and paste bug using wrong pointer reference. --- sys/netinet/sctputil.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 9d03b7cb6dc7..66334b4571c7 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -4863,7 +4863,7 @@ sctp_sorecvmsg(struct socket *so, * Note that stcb COULD be NULL. */ if (control->do_not_ref_stcb == 0) { - control->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started = 1; + control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 1; } control->some_taken = 1; if (hold_sblock) { @@ -5061,7 +5061,7 @@ sctp_sorecvmsg(struct socket *so, (control->end_added)) { out_flags |= MSG_EOR; if (control->do_not_ref_stcb == 0) - control->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started = 0; + control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; } if (control->spec_flags & M_NOTIFICATION) { out_flags |= MSG_NOTIFICATION; @@ -5334,12 +5334,12 @@ sctp_sorecvmsg(struct socket *so, out_flags |= MSG_EOR; if (control->pdapi_aborted) { if (control->do_not_ref_stcb == 0) - control->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started = 0; + control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; out_flags |= MSG_TRUNC; } else { if (control->do_not_ref_stcb == 0) - control->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started = 0; + control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; } goto done_with_control; } @@ -5390,7 +5390,7 @@ sctp_sorecvmsg(struct socket *so, if (control->end_added) { out_flags |= MSG_EOR; if (control->do_not_ref_stcb == 0) - control->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started = 0; + control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; } if (control->spec_flags & M_NOTIFICATION) { out_flags |= MSG_NOTIFICATION; @@ -5456,7 +5456,7 @@ sctp_sorecvmsg(struct socket *so, if (control->pdapi_aborted) { out_flags |= MSG_TRUNC; if (control->do_not_ref_stcb == 0) - control->stcb->asoc.strmin[ctl->sinfo_stream].delivery_started = 0; + control->stcb->asoc.strmin[control->sinfo_stream].delivery_started = 0; } goto done_with_control; }