mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Fix crash with custom memory allocator
This commit is contained in:
@@ -310,6 +310,7 @@ static int session_new(nghttp2_session **session_ptr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
(*session_ptr)->mem = *mem;
|
(*session_ptr)->mem = *mem;
|
||||||
|
mem = &(*session_ptr)->mem;
|
||||||
|
|
||||||
/* next_stream_id is initialized in either
|
/* next_stream_id is initialized in either
|
||||||
nghttp2_session_client_new2 or nghttp2_session_server_new2 */
|
nghttp2_session_client_new2 or nghttp2_session_server_new2 */
|
||||||
|
|||||||
Reference in New Issue
Block a user