mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-02 07:03:07 +00:00
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:
parent
dbee240869
commit
3f4e723ff7
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue