Skip to content

Commit 2252b80

Browse files
committed
fix: pointer use after free on config reload failure
1 parent 50f64b7 commit 2252b80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/settings.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ void settings_reload(Toxic *toxic)
11021102
}
11031103

11041104
free_ptr_array((void **) client_data->blocked_words);
1105+
client_data->blocked_words = NULL;
11051106

11061107
ret = settings_load_blocked_words(client_data, run_opts);
11071108

0 commit comments

Comments
 (0)