]> git.ipfire.org Git - thirdparty/curl.git/commit
asyn-thread: fix HTTPS RR crash
authorDaniel Stenberg <daniel@haxx.se>
Tue, 4 Feb 2025 16:51:57 +0000 (17:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 Feb 2025 13:05:22 +0000 (14:05 +0100)
commite4557573464ce7fd66ae8fe9723dc7c3dce1f349
tree0dbd576e838b839a1ac44cbe60fc52a27d175cb7
parent34cf9d54a46598c44938aa7598820484d7af7133
asyn-thread: fix HTTPS RR crash

By removing 'data' from the thread struct and passing it in as an
argument we avoid the case it could be dereferenced before stored when
shutting down HTTPS RR.

Also reordered the struct fields a little to remove holes.

Closes #16169
lib/asyn-thread.c
lib/asyn.h