diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-08-18 10:59:11 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-08-26 15:31:53 +0200 |
commit | 8585cd2483009b0dcd9ef275da3588e80acc522a (patch) | |
tree | 16ecf04dc1011b9143eaa773fec6aa877b86c5e9 /src/network/access/qnetworkaccesscache_p.h | |
parent | e68bf3ddaf4ecf6b1b711f505c8a40c858769044 (diff) |
wasm: don’t dereference null reply pointer
Move all access to the reply inside the nullptr check,
while making sure to still call emscripten_fetch_close()
unconditionally where needed.
Make all four Emscripten callback handlers have a similar
structure where we check if the reply is not null and
not in the Aborted state.
(This removes one emscripten_fetch_t nullptr check in
stateChage(), if it is really the case that Emscripten
calls us with a null emscripten_fetch_t then we should
add it back.)
Pick-to: 5.15 6.1 6.2
Change-Id: Iadcbe6338c338cfeb8967490e0951d8b3e1ec5b3
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/network/access/qnetworkaccesscache_p.h')
0 files changed, 0 insertions, 0 deletions