From ff51e5229e0ee846d2fd687cb0dbca13de758c66 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 7 Aug 2020 18:39:45 +0200 Subject: tools/syz-hubtool: fix up drain mode We may want to drain hub without uploading any repros/corpus. --- tools/syz-hubtool/hubtool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit mrf-deployment