summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-12 19:05:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-12 19:05:44 +0000
commitaaae6e26ff10b110b2e5f3f92b7bd99ba7e25a04 (patch)
tree91c49ea30ace437a4aa456be05e5fd8aa6222070 /etc
parentf8891a0f1413491c6ba3969f6074e6f61e41664c (diff)
downloadpfsense-aaae6e26ff10b110b2e5f3f92b7bd99ba7e25a04.zip
pfsense-aaae6e26ff10b110b2e5f3f92b7bd99ba7e25a04.tar.gz
When assigning the array back to $config, use the pointer on the source.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index c7b3a01..2ef5b9f 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -749,7 +749,7 @@ function restore_config_section($section, $new_contents) {
global $config;
conf_mount_rw();
config_lock();
- &$config[$section] = $new_contents;
+ $config[$section] = &$new_contents;
write_config();
conf_mount_ro();
config_unlock();
OpenPOWER on IntegriCloud