Do not check if client is dead if it is NULL.

pull/2020/head
nicm 2019-12-12 11:51:32 +00:00
parent c284ebe0ad
commit 268f2b047a
1 changed files with 1 additions and 1 deletions

2
file.c
View File

@ -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);
}