diff options
author | Ermal <eri@pfsense.org> | 2011-05-17 21:18:33 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-05-17 21:18:33 +0000 |
commit | 67d78c87c95cb45e305bbb07596f99d5b4bc1a13 (patch) | |
tree | dce1e2324c0c1b4a00cb046e70cdc6303c5c6cf3 | |
parent | f5adee3f6e8c74949ef51b75123ba034c7123977 (diff) | |
download | pfsense-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-x | usr/local/www/xmlrpc.php | 4 |
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); + ?> |