From 8c45fcfc5d15ca203f2c8a476d615fa61816d641 Mon Sep 17 00:00:00 2001 From: Nefarius Date: Wed, 11 Jun 2014 07:21:59 +0200 Subject: [PATCH] Restricted cloning handles --- extensions/curl/extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/curl/extension.cpp b/extensions/curl/extension.cpp index 44b8e4420..f55626fc2 100644 --- a/extensions/curl/extension.cpp +++ b/extensions/curl/extension.cpp @@ -98,7 +98,7 @@ bool CurlExt::SDK_OnLoad(char *error, size_t maxlength, bool late) g_pHandleSys->InitAccessDefaults(NULL, &dldrRules); dldrRules.access[HandleAccess_Clone] = HANDLE_RESTRICT_IDENTITY; g_DownloadHandle = g_pHandleSys->CreateType("HTTPDownloader", - &g_DownloadHandler, 0, 0, NULL, myself->GetIdentity(), NULL); + &g_DownloadHandler, 0, 0, &dldrRules, myself->GetIdentity(), NULL); plsys->AddPluginsListener(this); smutils->AddGameFrameHook(&OnGameFrame); g_SessionManager.Initialize();