summaryrefslogtreecommitdiff
path: root/ext/dl/handle.c
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-23 16:44:41 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-23 16:44:41 +0000
commit5ee251bdad423b244b7127e609a0bf2fec81e7a3 (patch)
tree3fd67023dfc8cecb15e125ca0367c196087d976c /ext/dl/handle.c
parent1eef1cdc563144049d1c7d48c322fd3a4d1a7747 (diff)
* ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)
[ruby-core:25762] * ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r--ext/dl/handle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index 0db66c70b4a..a9df5d61193 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -114,6 +114,8 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self)
rb_bug("rb_dlhandle_new");
}
+ rb_secure(2);
+
#if defined(HAVE_WINDOWS_H)
if( !clib ){
HANDLE rb_libruby_handle(void);