Merge branch 'master' of github.com:/esnet/iperf
diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c
index c823c5a..3ca6b06 100644
--- a/src/iperf_client_api.c
+++ b/src/iperf_client_api.c
@@ -346,22 +346,22 @@
socklen_t len;
len = sizeof(opt);
- if (getsockopt(test->ctrl_sck, IPPROTO_TCP, TCP_MAXSEG, &opt, &len) < 0) {
- test->ctrl_sck_mss = 0;
- }
- else {
- if (opt > 0 && opt <= MAX_UDP_BLOCKSIZE) {
- test->ctrl_sck_mss = opt;
- }
- else {
- char str[128];
- snprintf(str, sizeof(str),
- "Ignoring nonsense TCP MSS %d", opt);
- warning(str);
+ if (getsockopt(test->ctrl_sck, IPPROTO_TCP, TCP_MAXSEG, &opt, &len) < 0) {
+ test->ctrl_sck_mss = 0;
+ }
+ else {
+ if (opt > 0 && opt <= MAX_UDP_BLOCKSIZE) {
+ test->ctrl_sck_mss = opt;
+ }
+ else {
+ char str[128];
+ snprintf(str, sizeof(str),
+ "Ignoring nonsense TCP MSS %d", opt);
+ warning(str);
- test->ctrl_sck_mss = 0;
- }
- }
+ test->ctrl_sck_mss = 0;
+ }
+ }
if (test->verbose) {
printf("Control connection MSS %d\n", test->ctrl_sck_mss);