[pypy-commit] pypy null_byte_after_str: fix

arigo pypy.commits at gmail.com
Sat Jul 30 17:53:21 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: null_byte_after_str
Changeset: r85944:2d439fa08b77
Date: 2016-07-30 23:55 +0200
http://bitbucket.org/pypy/pypy/changeset/2d439fa08b77/

Log:	fix

diff --git a/pypy/module/_ssl/interp_ssl.py b/pypy/module/_ssl/interp_ssl.py
--- a/pypy/module/_ssl/interp_ssl.py
+++ b/pypy/module/_ssl/interp_ssl.py
@@ -228,7 +228,7 @@
 
         Mix string into the OpenSSL PRNG state.  entropy (a float) is a lower
         bound on the entropy contained in string."""
-        with rffi.get_nonmovingbuffer(string) as buf:
+        with rffi.scoped_nonmovingbuffer(string) as buf:
             libssl_RAND_add(buf, len(string), entropy)
 
     def RAND_status(space):


More information about the pypy-commit mailing list