@@ -142,8 +142,10 @@ function exec_shell_xmlrpc($raw_params) {
142
142
function backup_config_section_xmlrpc ($ raw_params ) {
143
143
global $ config , $ xmlrpc_g ;
144
144
145
- if (xmlrpc_loop_detect ())
145
+ if (xmlrpc_loop_detect ()) {
146
146
log_error ("Disallowing CARP sync loop " );
147
+ return ;
148
+ }
147
149
148
150
$ params = xmlrpc_params_to_php ($ raw_params );
149
151
if (!xmlrpc_auth ($ params )) {
@@ -170,8 +172,10 @@ function restore_config_section_xmlrpc($raw_params) {
170
172
171
173
$ old_config = $ config ;
172
174
173
- if (xmlrpc_loop_detect ())
175
+ if (xmlrpc_loop_detect ()) {
174
176
log_error ("Disallowing CARP sync loop " );
177
+ return ;
178
+ }
175
179
176
180
$ params = xmlrpc_params_to_php ($ raw_params );
177
181
if (!xmlrpc_auth ($ params )) {
@@ -295,8 +299,10 @@ interface_proxyarp_configure();
295
299
function merge_installedpackages_section_xmlrpc ($ raw_params ) {
296
300
global $ config , $ xmlrpc_g ;
297
301
298
- if (xmlrpc_loop_detect ())
302
+ if (xmlrpc_loop_detect ()) {
299
303
log_error ("Disallowing CARP sync loop " );
304
+ return ;
305
+ }
300
306
301
307
$ params = xmlrpc_params_to_php ($ raw_params );
302
308
if (!xmlrpc_auth ($ params )) {
@@ -323,8 +329,10 @@ function merge_installedpackages_section_xmlrpc($raw_params) {
323
329
function merge_config_section_xmlrpc ($ raw_params ) {
324
330
global $ config , $ xmlrpc_g ;
325
331
326
- if (xmlrpc_loop_detect ())
332
+ if (xmlrpc_loop_detect ()) {
327
333
log_error ("Disallowing CARP sync loop " );
334
+ return ;
335
+ }
328
336
329
337
$ params = xmlrpc_params_to_php ($ raw_params );
330
338
if (!xmlrpc_auth ($ params )) {
@@ -380,8 +388,10 @@ function filter_configure_xmlrpc($raw_params) {
380
388
function interfaces_carp_configure_xmlrpc ($ raw_params ) {
381
389
global $ xmlrpc_g ;
382
390
383
- if (xmlrpc_loop_detect ())
391
+ if (xmlrpc_loop_detect ()) {
384
392
log_error ("Disallowing CARP sync loop " );
393
+ return ;
394
+ }
385
395
386
396
$ params = xmlrpc_params_to_php ($ raw_params );
387
397
if (!xmlrpc_auth ($ params )) {
0 commit comments