|
@@ -1743,7 +1743,7 @@ static int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
|
|
* either the default or the user specified stream counts.
|
|
* either the default or the user specified stream counts.
|
|
*/
|
|
*/
|
|
if (sinfo) {
|
|
if (sinfo) {
|
|
- if (!sinit || (sinit && !sinit->sinit_num_ostreams)) {
|
|
|
|
|
|
+ if (!sinit || !sinit->sinit_num_ostreams) {
|
|
/* Check against the defaults. */
|
|
/* Check against the defaults. */
|
|
if (sinfo->sinfo_stream >=
|
|
if (sinfo->sinfo_stream >=
|
|
sp->initmsg.sinit_num_ostreams) {
|
|
sp->initmsg.sinit_num_ostreams) {
|