webclient: dispose the response body by default

Instead of a NULL dereference.

This fixes a crash on CONNECT failure when trying to proxy https.
This commit is contained in:
YAMAMOTO Takashi 2022-06-02 13:22:59 +09:00 committed by Xiang Xiao
parent dbee240869
commit 3f4e723ff7

View File

@ -1976,7 +1976,7 @@ int webclient_perform(FAR struct webclient_context *ctx)
goto errout_with_errno;
}
}
else
else if (ctx->callback)
{
ctx->callback(&ws->buffer, ws->offset,
ws->offset + received,