Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Commit 212d626

Browse files
author
Yevgeny Pats
committed
bugfix in agent refreshToken
1 parent b443e0b commit 212d626

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

client/agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func (c *FuzzitClient) runlibFuzzerMerge() error {
100100
return err
101101
}
102102

103+
c.refreshToken()
103104
if err := c.archiveAndUpload("merge",
104105
fmt.Sprintf("orgs/%s/targets/%s/corpus.tar.gz", c.Org, c.targetId),
105106
"corpus.tar.gz"); err != nil {
@@ -181,6 +182,7 @@ func (c *FuzzitClient) runLibFuzzerFuzzing() error {
181182
select {
182183
case <-timeout:
183184
var fuzzingJob job
185+
c.refreshToken()
184186
docRef := c.firestoreClient.Doc(fmt.Sprintf("orgs/%s/targets/%s/jobs/%s", c.Org, c.targetId, c.jobId))
185187
if docRef == nil {
186188
return fmt.Errorf("invalid resource")
@@ -228,6 +230,7 @@ func (c *FuzzitClient) runLibFuzzerFuzzing() error {
228230
}
229231
}
230232

233+
c.refreshToken()
231234
err = c.uploadCrash(exitCode)
232235
if err != nil {
233236
return err

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
const FuzzitEndpoint = "https://app.fuzzit.dev"
13-
const Version = "v2.4.41"
13+
const Version = "v2.4.42"
1414

1515
type Target struct {
1616
Name string `firestore:"target_name"`

0 commit comments

Comments
 (0)