Fixed handle misuse in clientprefs plugin (bug 5805, r=psychonic).
--HG-- extra : amend_source : a63c384e65feb0238bfc4e8ab618bc637a015962
This commit is contained in:
parent
3f92d2f300
commit
dfa11f64ef
@ -86,6 +86,7 @@ public Action:Command_Cookie(client, args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloseHandle(iter);
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,6 +113,7 @@ public Action:Command_Cookie(client, args)
|
|||||||
if (access == CookieAccess_Private)
|
if (access == CookieAccess_Private)
|
||||||
{
|
{
|
||||||
ReplyToCommand(client, "[SM] %t", "Cookie not Found", name);
|
ReplyToCommand(client, "[SM] %t", "Cookie not Found", name);
|
||||||
|
CloseHandle(cookie);
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,12 +125,14 @@ public Action:Command_Cookie(client, args)
|
|||||||
GetClientCookie(client, cookie, value, sizeof(value));
|
GetClientCookie(client, cookie, value, sizeof(value));
|
||||||
ReplyToCommand(client, "[SM] %t", "Cookie Value", name, value);
|
ReplyToCommand(client, "[SM] %t", "Cookie Value", name, value);
|
||||||
|
|
||||||
|
CloseHandle(cookie);
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (access == CookieAccess_Protected)
|
if (access == CookieAccess_Protected)
|
||||||
{
|
{
|
||||||
ReplyToCommand(client, "[SM] %t", "Protected Cookie", name);
|
ReplyToCommand(client, "[SM] %t", "Protected Cookie", name);
|
||||||
|
CloseHandle(cookie);
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,6 +141,7 @@ public Action:Command_Cookie(client, args)
|
|||||||
GetCmdArg(2, value, sizeof(value));
|
GetCmdArg(2, value, sizeof(value));
|
||||||
|
|
||||||
SetClientCookie(client, cookie, value);
|
SetClientCookie(client, cookie, value);
|
||||||
|
CloseHandle(cookie);
|
||||||
ReplyToCommand(client, "[SM] %t", "Cookie Changed Value", name, value);
|
ReplyToCommand(client, "[SM] %t", "Cookie Changed Value", name, value);
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
|
Loading…
Reference in New Issue
Block a user