Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Actually call SendNullByte for authentication
Browse files Browse the repository at this point in the history
Fixes #28.
  • Loading branch information
guelfey committed Oct 27, 2013
1 parent 1ed3f5a commit d57154e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (conn *Conn) Auth(methods []Auth) error {
methods = []Auth{AuthExternal(u.Username), AuthCookieSha1(u.Username, u.HomeDir)}
}
in := bufio.NewReader(conn.transport)
_, err := conn.transport.Write([]byte{0})
err := conn.transport.SendNullByte()
if err != nil {
return err
}
Expand Down

0 comments on commit d57154e

Please sign in to comment.