Skip to content

Commit 576791e

Browse files
committed
Fix potential nil deref in closeTunnel
1 parent 46da3b7 commit 576791e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/daemon/daemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (d *daemon) closeTunnel(conn net.Conn, q *tunnel.Desc) {
122122
d.mutex.RUnlock()
123123
if !ok {
124124
err = fmt.Errorf("tunnel not running")
125-
log.Errorf("%v: could not close tunnel: %v", t.Name, err)
125+
log.Errorf("%v: could not close tunnel: %v", q.Name, err)
126126
return
127127
}
128128

0 commit comments

Comments
 (0)