]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: Fix potential NULL pointer dereference
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 16 May 2022 19:18:46 +0000 (21:18 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 16 May 2022 19:18:46 +0000 (21:18 +0200)
commit542c78dda7ff41d9ca6865d705db996fa8ffaf83
tree4846f9e85aa19fd65c1b76b332acaa9241a0ba32
parent2df67e93c35b74c567505d4400e02e88b2dbf499
transfer: Fix potential NULL pointer dereference

Commit 0ef54abf5208 accidentally used the conn variable before the
assertion for it being NULL. Fix by moving the assignment which use
conn to after the assertion.

Closes: #8857
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
lib/transfer.c