Commit e93132c9 authored by Adam Langley's avatar Adam Langley

crypto/rsa: fix shadowing error.

Fixes bug 375.

R=rsc
https://golang.org/cl/165045
parent cf37254b
......@@ -159,12 +159,12 @@ func GenerateKey(rand io.Reader, bits int) (priv *PrivateKey, err os.Error) {
for {
p, err := randomSafePrime(rand, bits/2);
if err != nil {
return
return nil, err
}
q, err := randomSafePrime(rand, bits/2);
if err != nil {
return
return nil, err
}
if p.Cmp(q) == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment