diff options
author | Bruce A. Mah <bmah@es.net> | 2020-07-24 17:32:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 17:32:00 -0700 |
commit | a9c28038c08d4287d4bcc369514ef411336c5d1f (patch) | |
tree | 14c271459dbc57f2b5fb8f4a8126e02203f322a1 | |
parent | 1a908ce13ea7b585d2e7ac315e3ef3e4bc8db560 (diff) | |
download | iperf3-a9c28038c08d4287d4bcc369514ef411336c5d1f.tar.gz |
fix: Emit error message for an unknown i_error, rather than an empty string. (#1030)
Suggested by @david-BarOn.
Towards #1022.
-rw-r--r-- | src/iperf_error.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iperf_error.c b/src/iperf_error.c index b080540..cfe4cbd 100644 --- a/src/iperf_error.c +++ b/src/iperf_error.c @@ -424,6 +424,10 @@ iperf_strerror(int int_errno) case IETOTALRATE: snprintf(errstr, len, "total required bandwidth is larger than server limit"); break; + default: + snprintf(errstr, len, "int_errno=%d", int_errno); + perr = 1; + break; } /* Append the result of strerror() or gai_strerror() if appropriate */ |