summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2016-05-01 11:00:29 (GMT)
committerMichael Tuexen <tuexen@fh-muenster.de>2016-05-01 11:00:29 (GMT)
commit5b001767cd6db5afe1237a6ccd596ee46fb5d82f (patch)
treed01b8eae73970a0122d847cbc11e0e4c742c2077 /programs
parentf02e0be5d534af0fb5cb64710632866da210ba8d (diff)
downloadusrsctp-5b001767cd6db5afe1237a6ccd596ee46fb5d82f.tar.gz
usrsctp-5b001767cd6db5afe1237a6ccd596ee46fb5d82f.tar.xz
Add some error handling to trigger a build.
Diffstat (limited to 'programs')
-rw-r--r--programs/http_client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/programs/http_client.c b/programs/http_client.c
index da0d8c5..c5c2c55 100644
--- a/programs/http_client.c
+++ b/programs/http_client.c
@@ -186,8 +186,13 @@ main(int argc, char *argv[])
goto out;
}
- // send GET request
- usrsctp_sendv(sock, request, strlen(request), NULL, 0, NULL, 0, SCTP_SENDV_NOINFO, 0);
+ /* send GET request */
+ if (usrsctp_sendv(sock, request, strlen(request), NULL, 0, NULL, 0, SCTP_SENDV_NOINFO, 0) < 0) {
+ perror("usrsctp_sendv");
+ usrsctp_close(sock);
+ result = 6;
+ goto out;
+ }
while (!done) {
#ifdef _WIN32