summaryrefslogtreecommitdiff
path: root/libavformat/sctp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/sctp.c')
-rw-r--r--libavformat/sctp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/sctp.c b/libavformat/sctp.c
index a4406d1e40..35b9ad15ab 100644
--- a/libavformat/sctp.c
+++ b/libavformat/sctp.c
@@ -143,7 +143,7 @@ static int ff_sctp_send(int s, const void *msg, size_t len,
memcpy(CMSG_DATA(cmsg), sinfo, sizeof(struct sctp_sndrcvinfo));
}
- return sendmsg(s, &outmsg, flags);
+ return sendmsg(s, &outmsg, flags | MSG_NOSIGNAL);
}
typedef struct SCTPContext {
@@ -302,7 +302,7 @@ static int sctp_write(URLContext *h, const uint8_t *buf, int size)
}
ret = ff_sctp_send(s->fd, buf + 2, size - 2, &info, MSG_EOR);
} else
- ret = send(s->fd, buf, size, 0);
+ ret = send(s->fd, buf, size, MSG_NOSIGNAL);
return ret < 0 ? ff_neterrno() : ret;
}