mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'bugfix/fix_httpd_req_cleanup_v4.4' into 'release/v4.4'
esp_http_server: fix wrong context pointer in httpd_req_cleanup function (v4.4) See merge request espressif/esp-idf!21732
This commit is contained in:
@ -694,7 +694,7 @@ static void httpd_req_cleanup(httpd_req_t *r)
|
|||||||
|
|
||||||
/* Check if the context has changed and needs to be cleared */
|
/* Check if the context has changed and needs to be cleared */
|
||||||
if ((r->ignore_sess_ctx_changes == false) && (ra->sd->ctx != r->sess_ctx)) {
|
if ((r->ignore_sess_ctx_changes == false) && (ra->sd->ctx != r->sess_ctx)) {
|
||||||
httpd_sess_free_ctx(ra->sd->ctx, ra->sd->free_ctx);
|
httpd_sess_free_ctx(&ra->sd->ctx, ra->sd->free_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_HTTPD_WS_SUPPORT
|
#if CONFIG_HTTPD_WS_SUPPORT
|
||||||
|
Reference in New Issue
Block a user