aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stream.c b/src/stream.c
index 7d40df2..0ef54c6 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -45,6 +45,9 @@ static int sctp_sock_activate_events(int fd)
rc = setsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS,
&event, sizeof(event));
+ if (rc < 0)
+ LOGP(DLINP, LOGL_ERROR, "coudldn't activate SCTP events "
+ "on FD %u\n", fd);
return rc;
#else
return -1;