]> granicus.if.org Git - curl/commit
doh: clean up dangling DOH handles and memory on easy close
authorDaniel Stenberg <daniel@haxx.se>
Mon, 16 Sep 2019 14:38:01 +0000 (16:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 16 Sep 2019 15:31:56 +0000 (17:31 +0200)
commit9bc44ff64d90812251a1f91020d753f125cd6ab4
tree3d7f0e7b26e07413c01054a0b9f1fe72ca497e23
parent3ad883aeda4aaccdc5b50ac1afdd8816ce131f07
doh: clean up dangling DOH handles and memory on easy close

If you set the same URL for target as for DoH (and it isn't a DoH
server), like "https://example.com" in both, the easy handles used for
the DoH requests could be left "dangling" and end up not getting freed.

Reported-by: Paul Dreik
Closes #4366
lib/doh.c
lib/url.c