summaryrefslogtreecommitdiff
path: root/programs/http_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'programs/http_client.c')
-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