summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-17 21:18:33 +0000
committerErmal <eri@pfsense.org>2011-05-17 21:18:33 +0000
commit67d78c87c95cb45e305bbb07596f99d5b4bc1a13 (patch)
treedce1e2324c0c1b4a00cb046e70cdc6303c5c6cf3
parentf5adee3f6e8c74949ef51b75123ba034c7123977 (diff)
downloadpfsense-67d78c87c95cb45e305bbb07596f99d5b4bc1a13.zip
pfsense-67d78c87c95cb45e305bbb07596f99d5b4bc1a13.tar.gz
Ticket #1534. Serialize all the xmlrpc requests coming to the firewall. Seems such request can stomp into each other and create either corruption of xmlrpc request or other issues.
-rwxr-xr-xusr/local/www/xmlrpc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index ebb3a24..9deffcc 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -372,6 +372,8 @@ function get_notices_xmlrpc($raw_params) {
return $response;
}
+$xmlrpclockkey = lock('xmlrpc', LOCK_EX);
+
/*****************************/
$server = new XML_RPC_Server(
array(
@@ -412,4 +414,6 @@ $server = new XML_RPC_Server(
)
);
+unlock($xmlrpclockkey);
+
?>
OpenPOWER on IntegriCloud