diff options
Diffstat (limited to 'ext/libressl/crypto')
-rw-r--r-- | ext/libressl/crypto/compat/arc4random_fe310.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/libressl/crypto/compat/arc4random_fe310.h b/ext/libressl/crypto/compat/arc4random_fe310.h index 131b0d3..ddfa1ab 100644 --- a/ext/libressl/crypto/compat/arc4random_fe310.h +++ b/ext/libressl/crypto/compat/arc4random_fe310.h @@ -20,8 +20,10 @@ _rs_allocate(struct _rs **rsp, struct _rsx **rsxp) return arc4random_alloc((void **)rsp, sizeof(**rsp), (void **)rsxp, sizeof(**rsxp)); } -void arc4random_close(void) +void arc4random_close(void **rsp, void **rsxp) { + *rsp = rs; + *rsxp = rsx; rs = NULL; rsx = NULL; }
\ No newline at end of file |