Skip to content
Snippets Groups Projects
Unverified Commit 5a49ca12 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

mqtt: when Curl_xfer_recv returns error, don't use nread

A returned error code makes other return value unreliable, and in this
case potentially uninitialized. On error, do not read other return
values like the nread counter.

Spotted by CodeSonar
parent 0a25b3e0
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment