go.crypto/ssh: prevent concurrent reads and concurrent writes over the same agent connection

minor fix for v01 cert parsing when algo is not supported

R=golang-dev, agl, dave
CC=golang-dev
https://golang.org/cl/6116052
This commit is contained in:
Jonathan Pittman
2012-04-26 17:13:49 -04:00
committed by Adam Langley
parent 0d3cfff99f
commit 8ab8312ac8
2 changed files with 21 additions and 6 deletions
+1
View File
@@ -78,6 +78,7 @@ func parseOpenSSHCertV01(in []byte, algo string) (out *OpenSSHCertV01, rest []by
}
cert.Key = dsaPubKey
default:
ok = false
return
}