diff options
author | Felix Weinrank <weinrank@fh-muenster.de> | 2019-04-03 00:22:23 +0200 |
---|---|---|
committer | Felix Weinrank <weinrank@fh-muenster.de> | 2019-04-03 00:22:23 +0200 |
commit | 7d89bcbc14ab10ea9ea40caec76a15d3f2053a65 (patch) | |
tree | 8338fa037e509c1812f0655cba12fb510fb112d1 /programs | |
parent | 66df74083a4ebd3104038e1e43201ea8e10d009f (diff) | |
download | usrsctp-7d89bcbc14ab10ea9ea40caec76a15d3f2053a65.tar.gz |
temp commit - searching for bugs on buildbots
Diffstat (limited to 'programs')
-rw-r--r-- | programs/http_client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/programs/http_client.c b/programs/http_client.c index 051060e6..87264848 100644 --- a/programs/http_client.c +++ b/programs/http_client.c @@ -253,7 +253,7 @@ main(int argc, char *argv[]) printf("\nHTTP response:\n"); if (usrsctp_connect(sock, addr, addr_len) < 0) { - perror("usrsctp_connect"); + int errrorr = errno; if (errno == ECONNREFUSED) { result = RETVAL_ECONNREFUSED; } else if (errno == ETIMEDOUT) { @@ -261,7 +261,9 @@ main(int argc, char *argv[]) } else { result = RETVAL_CATCHALL; } - printf("result %d - errno %d - ECONNREFUSED %d\n", result, errno, ECONNREFUSED); + + printf("result %d - errno %d - ECONNREFUSED %d - errror %d\n", result, errno, ECONNREFUSED, errrorr); + perror("usrsctp_connect"); fprintf(stderr, "%s\n", strerror(errno)); usrsctp_close(sock); |