Skip to content

Commit f8e6778

Browse files
input_thread: added missing sanity check
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent 144ed72 commit f8e6778

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/flb_input_thread.c

+4
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ int flb_input_thread_instance_exit(struct flb_input_instance *ins)
557557
struct flb_input_thread_instance *thi = ins->thi;
558558
pthread_t tid;
559559

560+
if (thi == NULL) {
561+
return 0;
562+
}
563+
560564
memcpy(&tid, &thi->th->tid, sizeof(pthread_t));
561565

562566
/* compose message to pause the thread */

0 commit comments

Comments
 (0)