aboutsummaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorFelix Weinrank <weinrank@fh-muenster.de>2020-02-03 12:41:54 +0100
committerGitHub <noreply@github.com>2020-02-03 12:41:53 +0100
commita84a9c3157af0025d14580ba477e43c1f5efe53a (patch)
tree1f00ee12e5476b2ff01ad069ead581832498ac34 /programs
parent09a28469e69e89b7a9e81cf5fffabe0b12a1084d (diff)
downloadusrsctp-a84a9c3157af0025d14580ba477e43c1f5efe53a.tar.gz
ekr_loop - Fix bug (#425)
Diffstat (limited to 'programs')
-rw-r--r--programs/ekr_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/programs/ekr_loop.c b/programs/ekr_loop.c
index dfb84b56..b8dacfb5 100644
--- a/programs/ekr_loop.c
+++ b/programs/ekr_loop.c
@@ -521,8 +521,9 @@ main(int argc, char *argv[])
debug_printf("usrscp_sendv - step %d - call %d flags %x\n", i, ++j, sndinfo.snd_flags);
while (usrsctp_sendv(s_c, line, LINE_LENGTH, NULL, 0, (void *)&sndinfo,
(socklen_t)sizeof(struct sctp_sndinfo), SCTP_SENDV_SNDINFO, 0) < 0) {
+ fprintf(stderr,"usrsctp_sendv - errno: %d - %s\n", errno, strerror(errno));
if (errno != EWOULDBLOCK || !sendv_retries_left) {
- fprintf(stderr,"usrsctp_sendv - errno: %d - %s\n", errno, strerror(errno));
+ exit(EXIT_FAILURE);
}
sendv_retries_left--;
#ifdef _WIN32