1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fixes cut and paste bug using wrong pointer reference.

This commit is contained in:
Randall Stewart 2007-04-23 00:51:49 +00:00
parent f5e97105d3
commit ee7f985774
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168961

View File

@ -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;
}