-
Notifications
You must be signed in to change notification settings - Fork 18k
missing unlock in crypt/rand/rand_unix.go #917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
codereview.appspot.com/1812043 Owner changed to [email protected]. Status changed to Started. |
$ hg diff pkg/crypto/rand/rand_windows.go diff -r 4f91458c5765 src/pkg/crypto/rand/rand_windows.go --- a/src/pkg/crypto/rand/rand_windows.go Tue Jul 13 10:47:52 2010 +1000 +++ b/src/pkg/crypto/rand/rand_windows.go Tue Jul 13 11:09:52 2010 -0700 @@ -30,6 +30,7 @@ const flags = syscall.CRYPT_VERIFYCONTEXT | syscall.CRYPT_SILENT ok, errno := syscall.CryptAcquireContext(&r.prov, nil, nil, provType, flags) if !ok { + r.mu.Unlock() return 0, os.NewSyscallError("CryptAcquireContext", errno) } } |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: