diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-13 23:00:43 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-13 23:06:34 -0700 |
commit | 856d2bf957e10c98597a29135337b5bd35899893 (patch) | |
tree | b1217f863c8faa23d9468b28ee36ac30334b32be /etc/inc/auth.inc | |
parent | ac50365306ce7b3d552bb4d8295cae789aab98ca (diff) | |
download | pfsense-856d2bf957e10c98597a29135337b5bd35899893.zip pfsense-856d2bf957e10c98597a29135337b5bd35899893.tar.gz |
Unset this reference before reusing the variable name to prevent corruption of groups.
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 3628436..84b73dc 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -475,6 +475,7 @@ function local_user_set_groups($user, $new_groups = NULL ) { $group['member'][] = $user['uid']; $mod_groups[] = $group; } + unset($group); /* determine which memberships to remove */ foreach ($cur_groups as $groupname) { @@ -489,6 +490,7 @@ function local_user_set_groups($user, $new_groups = NULL ) { $mod_groups[] = $group; } } + unset($group); /* sync all modified groups */ foreach ($mod_groups as $group) |