Skip to content

Commit 02056ae

Browse files
committed
Fix lint
1 parent a39bc98 commit 02056ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agentssh/agentssh.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ func (s *Server) ConnStats() ConnStats {
155155

156156
func (s *Server) sessionHandler(session ssh.Session) {
157157
if !s.trackSession(session, true) {
158-
session.Exit(MagicSessionErrorCode)
158+
// See (*Server).Close() for why we call Close instead of Exit.
159+
_ = session.Close()
159160
return
160161
}
161162
defer s.trackSession(session, false)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy