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
@ -884,8 +884,9 @@ out:
|
||||
if(nread > 0)
|
||||
ctx->data_recvd += nread;
|
||||
DEBUGF(LOG_CF(data, cf, "[h3sid=%"PRId64"] cf_recv(total=%"
|
||||
CURL_FORMAT_CURL_OFF_T ") -> %zd, %d",
|
||||
stream->id, ctx->data_recvd, nread, *err));
|
||||
CURL_FORMAT_CURL_OFF_T ") -> %zd, %d",
|
||||
stream ? stream->id : (int64_t)0,
|
||||
ctx->data_recvd, nread, *err));
|
||||
return nread;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user