diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-08-07 18:39:45 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-08-07 18:39:45 +0200 |
| commit | ff51e5229e0ee846d2fd687cb0dbca13de758c66 (patch) | |
| tree | a7da3e762ce7f64a5b85b183fda3732985ec55d7 /tools/syz-hubtool | |
| parent | bb468f3218a1e70075e65e7312f82351f064928a (diff) | |
tools/syz-hubtool: fix up drain mode
We may want to drain hub without uploading any repros/corpus.
Diffstat (limited to 'tools/syz-hubtool')
| -rw-r--r-- | tools/syz-hubtool/hubtool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-hubtool/hubtool.go b/tools/syz-hubtool/hubtool.go index 94a7ef9d8..bf5f6c20b 100644 --- a/tools/syz-hubtool/hubtool.go +++ b/tools/syz-hubtool/hubtool.go @@ -47,7 +47,7 @@ func main() { corpus = loadCorpus(target, *flagCorpus) } log.Printf("loaded %v reproducers, %v corpus programs", len(repros), len(corpus)) - if len(repros)+len(corpus) == 0 { + if len(repros)+len(corpus) == 0 && !*flagDrain { return } log.Printf("connecting to hub at %v...", *flagHubAddress) |
