mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
httpd: revert part of previous change
pextension needs to be zeroed in case fs_file structure is reused in a persistent HTTP connection
This commit is contained in:
parent
b00a05d086
commit
6fee08daab
@ -79,6 +79,9 @@ fs_open(struct fs_file *file, const char *name)
|
||||
file->chksum_count = f->chksum_count;
|
||||
file->chksum = f->chksum;
|
||||
#endif /* HTTPD_PRECALCULATED_CHECKSUM */
|
||||
#if LWIP_HTTPD_FILE_EXTENSION
|
||||
file->pextension = NULL;
|
||||
#endif /* LWIP_HTTPD_FILE_EXTENSION */
|
||||
#if LWIP_HTTPD_FILE_STATE
|
||||
file->state = fs_state_init(file, name);
|
||||
#endif /* #if LWIP_HTTPD_FILE_STATE */
|
||||
|
Loading…
Reference in New Issue
Block a user