summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/iproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/iproxy.c b/tools/iproxy.c
index 36d4521..2d32275 100644
--- a/tools/iproxy.c
+++ b/tools/iproxy.c
@@ -71,7 +71,7 @@ static void *run_stoc_loop(void *arg)
// try again
continue;
} else {
- fprintf(stderr, "recv failed: %s\n", strerror(errno));
+ fprintf(stderr, "recv failed: %s\n", strerror(-recv_len));
break;
}
} else {
@@ -124,7 +124,7 @@ static void *run_ctos_loop(void *arg)
// try again
continue;
} else {
- fprintf(stderr, "recv failed: %s\n", strerror(errno));
+ fprintf(stderr, "recv failed: %s\n", strerror(-recv_len));
break;
}
} else {