mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-14 16:38:40 +00:00
pkg/instance: fix Accept error check
This commit is contained in:
parent
5c7ca877eb
commit
c45c8c2a07
@ -248,7 +248,7 @@ func (inst *inst) testInstance() error {
|
||||
acceptErr := make(chan error, 1)
|
||||
go func() {
|
||||
conn, err := ln.Accept()
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
conn.Close()
|
||||
}
|
||||
acceptErr <- err
|
||||
|
Loading…
x
Reference in New Issue
Block a user