projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
18be35e
)
client: fix potential NULL dereference
author
Jens Axboe
<axboe@fb.com>
Wed, 15 Oct 2014 01:56:25 +0000
(19:56 -0600)
committer
Jens Axboe
<axboe@fb.com>
Wed, 15 Oct 2014 01:56:25 +0000
(19:56 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
client.c
patch
|
blob
|
blame
|
history
diff --git
a/client.c
b/client.c
index 6b9fdd8dbfb8e784a9205bcd4c7ff99d97ae3ae1..edc02a0a13416c04fbb546bf2c05799a440bbf84 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-271,6
+271,9
@@
int fio_client_add_ini_file(void *cookie, const char *ini_file, int remote)
size_t new_size;
void *new_files;
+ if (!client)
+ return 1;
+
dprint(FD_NET, "client <%s>: add ini %s\n", client->hostname, ini_file);
new_size = (client->nr_files + 1) * sizeof(struct client_file);