client: fix potential buffer overrun in socket path
[fio.git] / client.h
index 341d26069449a94f4b95ecaa69b0cb16e472ebed..c8ff23ecdd68a8b26142b35d961619f9e18633ff 100644 (file)
--- a/client.h
+++ b/client.h
@@ -42,10 +42,12 @@ struct fio_client {
        int is_sock;
        int disk_stats_shown;
        unsigned int jobs;
+       unsigned int nr_stat;
        int error;
        int signal;
        int ipv6;
        int sent_job;
+       int did_stat;
        uint32_t type;
 
        uint32_t thread_number;
@@ -99,8 +101,8 @@ struct client_ops {
 extern struct client_ops fio_client_ops;
 
 struct client_eta {
-       struct jobs_eta eta;
        unsigned int pending;
+       struct jobs_eta eta;
 };
 
 extern int fio_handle_client(struct fio_client *);