Closed past-due closed 4 months ago
I think the proper fix is to reset
client->protocol
toNULL
ifclient->protocol->init()
fails:
Implemented this fix.
I also reset state->impl = NULL
after freeing, everywhere that is done.
And fixed a possible double-free in http_perform_rec()
(error:
already frees buffer
, but there were a few places that also did so before goto error
).
If
upnp_init()
fails,state->impl
has already been freed.upnp_cleanup()
then later accessesstate->impl
.Caught by AddressSanitizer: