summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorFelix Weinrank <weinrank@fh-muenster.de>2016-06-16 14:22:35 (GMT)
committerFelix Weinrank <weinrank@fh-muenster.de>2016-06-16 14:22:35 (GMT)
commitd7bb22ceb197b7c7ff41620edfacd9b1e6d757fb (patch)
tree802b21e90585eadb07dc76c78d8ae25beb855a93 /programs
parentb3117fa374f459cfdf53f4eddb4f0fe8eacd88ad (diff)
downloadusrsctp-d7bb22ceb197b7c7ff41620edfacd9b1e6d757fb.tar.gz
usrsctp-d7bb22ceb197b7c7ff41620edfacd9b1e6d757fb.tar.xz
Check if we have enough arguments
Diffstat (limited to 'programs')
-rw-r--r--programs/http_client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/programs/http_client.c b/programs/http_client.c
index a2289ca..6dfd1ee 100644
--- a/programs/http_client.c
+++ b/programs/http_client.c
@@ -100,6 +100,11 @@ main(int argc, char *argv[])
struct sctp_udpencaps encaps;
int result;
+ if (argc < 3) {
+ printf("Usage: http_client remote_addr remote_port [local_port] [local_encaps_port] [remote_encaps_port] [uri]\n");
+ return(EXIT_FAILURE);
+ }
+
result = 0;
if (argc > 4) {
usrsctp_init(atoi(argv[4]), NULL, debug_printf);