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

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