quiche: avoid NULL deref in debug logging
Coverity reported "Dereference after null check" If stream is NULL and the function exits, the logging must not deref it. Closes #11454
This commit is contained in:
parent
380fe02cf5
commit
a141c3c08b
@ -885,7 +885,8 @@ out:
|
|||||||
ctx->data_recvd += nread;
|
ctx->data_recvd += nread;
|
||||||
DEBUGF(LOG_CF(data, cf, "[h3sid=%"PRId64"] cf_recv(total=%"
|
DEBUGF(LOG_CF(data, cf, "[h3sid=%"PRId64"] cf_recv(total=%"
|
||||||
CURL_FORMAT_CURL_OFF_T ") -> %zd, %d",
|
CURL_FORMAT_CURL_OFF_T ") -> %zd, %d",
|
||||||
stream->id, ctx->data_recvd, nread, *err));
|
stream ? stream->id : (int64_t)0,
|
||||||
|
ctx->data_recvd, nread, *err));
|
||||||
return nread;
|
return nread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user