mirror of
https://github.com/curl/curl.git
synced 2026-04-18 12:21:40 +03:00
connect: fix access of pointer before NULL check
Detected by Coverity CID 1518992 Closes #10284
This commit is contained in:
parent
4579626c27
commit
8956cd4f9a
1 changed files with 3 additions and 1 deletions
|
|
@ -677,7 +677,9 @@ evaluate:
|
|||
for(i = 0; i < sizeof(ctx->baller)/sizeof(ctx->baller[0]); i++) {
|
||||
struct eyeballer *baller = ctx->baller[i];
|
||||
DEBUGF(LOG_CF(data, cf, "%s assess started=%d, result=%d",
|
||||
baller->name, baller->has_started, baller->result));
|
||||
baller?baller->name:NULL,
|
||||
baller?baller->has_started:0,
|
||||
baller?baller->result:0));
|
||||
if(baller && baller->has_started && baller->result) {
|
||||
result = baller->result;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue