mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
transfer: remove k->str NULL check
"Null-checking k->str suggests that it may be null, but it has already been dereferenced on all paths leading to the check" - and it can't legally be NULL at this point. Remove check. Detected by Coverity CID 1463884 Closes #5495
This commit is contained in:
parent
5325b92a0a
commit
b77a2528f8
@ -688,7 +688,7 @@ static CURLcode readwrite_data(struct Curl_easy *data,
|
|||||||
/* This is not an 'else if' since it may be a rest from the header
|
/* This is not an 'else if' since it may be a rest from the header
|
||||||
parsing, where the beginning of the buffer is headers and the end
|
parsing, where the beginning of the buffer is headers and the end
|
||||||
is non-headers. */
|
is non-headers. */
|
||||||
if(k->str && !k->header && (nread > 0 || is_empty_data)) {
|
if(!k->header && (nread > 0 || is_empty_data)) {
|
||||||
|
|
||||||
if(data->set.opt_no_body) {
|
if(data->set.opt_no_body) {
|
||||||
/* data arrives although we want none, bail out */
|
/* data arrives although we want none, bail out */
|
||||||
|
Loading…
Reference in New Issue
Block a user