aboutsummaryrefslogtreecommitdiffstats
path: root/src/sctp_m2ua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sctp_m2ua.c')
-rw-r--r--src/sctp_m2ua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sctp_m2ua.c b/src/sctp_m2ua.c
index 5d1db25..83784ec 100644
--- a/src/sctp_m2ua.c
+++ b/src/sctp_m2ua.c
@@ -429,7 +429,7 @@ static int m2ua_conn_read(struct bsc_fd *fd)
memset(&addr, 0, sizeof(addr));
rc = sctp_recvmsg(fd->fd, msg->data, msg->data_len,
(struct sockaddr *) &addr, &len, &info, NULL);
- if (rc < 0) {
+ if (rc <= 0) {
LOGP(DINP, LOGL_ERROR, "Failed to read.\n");
m2ua_conn_destroy(fd->data);
return -1;