Merge #25: tlsrestrict: Check error return value of config.Parse

35ca202 tlsrestrict: Check error return value of config.Parse (JeremyRand)

Pull request description:

  Found by static analysis.

Tree-SHA512: cd375be61179857586c9c5ebdd0ac9f39f4ac51b95753bbb290deb35ce43533a0e661c4d1fb0136950e94c2a45b4b83ba2b6f604374ba611b75e881ec26a7eb9
pull/30/head
JeremyRand 7 years ago
commit 603cc132cb
No known key found for this signature in database
GPG Key ID: B3F2D165786D6570

@ -19,7 +19,10 @@ func main() {
config := easyconfig.Configurator{
ProgramName: "tlsrestrict_chromium",
}
config.Parse(nil)
err := config.Parse(nil)
if err != nil {
log.Fatalf("Couldn't parse configuration: %s", err)
}
transportSecurityPath := transportSecurityPathFlag.Value()
domain := domainFlag.Value()

Loading…
Cancel
Save