summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authornicm <nicm>2019-12-12 11:51:32 +0000
committernicm <nicm>2019-12-12 11:51:32 +0000
commit268f2b047a6e9b932a0ff51aa526e1df61d54165 (patch)
tree08221a266c0f0b088720e3e0ff463ae1dfdac9c9 /file.c
parentc284ebe0ade7cc85ad6c3fe5ce7ed5108119222d (diff)
Do not check if client is dead if it is NULL.
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index ccd62a94..f0d622bc 100644
--- a/file.c
+++ b/file.c
@@ -88,7 +88,7 @@ file_fire_done_cb(__unused int fd, __unused short events, void *arg)
struct client_file *cf = arg;
struct client *c = cf->c;
- if (cf->cb != NULL && (~c->flags & CLIENT_DEAD))
+ if (cf->cb != NULL && (c == NULL || (~c->flags & CLIENT_DEAD)))
cf->cb(c, cf->path, cf->error, 1, cf->buffer, cf->data);
file_free(cf);
}