diff options
author | Omar Polo <op@omarpolo.com> | 2021-07-06 10:46:50 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-07-06 10:46:50 +0000 |
commit | ef945cf4157bc8239c6da682a89ba60b11cc0e26 (patch) | |
tree | b3c5fed5c93bd7751b2e50e0b8328d1a2db04a17 /gmid.c | |
parent | 4aa1dd553a8919c61136f8ed7cc775017f628769 (diff) |
reset fcgi array in free_config
otherwise path, port and/or prog could become an invalid pointer.
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -328,6 +328,12 @@ free_config(void) free(fcgi[i].path); free(fcgi[i].port); free(fcgi[i].prog); + + fcgi[i].path = NULL; + fcgi[i].port = NULL; + fcgi[i].prog = NULL; + + fcgi[i].s = FCGI_OFF; } tls_free(ctx); |