fix unreachable code after log.Fatal in fuzzing corpus generator (#3496)

Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
Abirdcfly 2022-08-12 17:02:15 +08:00 committed by GitHub
parent bea5de0221
commit dbb7a215a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,9 +60,9 @@ func newRunner(client, server *handshake.CryptoSetup) *runner {
func (r *runner) OnReceivedParams(*wire.TransportParameters) {}
func (r *runner) OnHandshakeComplete() {}
func (r *runner) OnError(err error) {
log.Fatal("runner error:", err)
(*r.client).Close()
(*r.server).Close()
log.Fatal("runner error:", err)
}
func (r *runner) DropKeys(protocol.EncryptionLevel) {}