summaryrefslogtreecommitdiff
path: root/src/tools/oping
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/oping')
-rw-r--r--src/tools/oping/oping_server.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/oping/oping_server.c b/src/tools/oping/oping_server.c
index d7294fa1..24cd9bf1 100644
--- a/src/tools/oping/oping_server.c
+++ b/src/tools/oping/oping_server.c
@@ -100,10 +100,8 @@ void * server_thread(void *o)
msg->type = htonl(ECHO_REPLY);
- if (flow_write(fd, buf, msg_len) < 0) {
+ if (flow_write(fd, buf, msg_len) < 0)
printf("Error writing to flow (fd %d).\n", fd);
- flow_dealloc(fd);
- }
}
}