summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-06-09 03:30:54 +0000
committerLuke Leighton <lkcl@samba.org>2000-06-09 03:30:54 +0000
commit979f509e74c7cb2071478b9b1da9f254d98920cb (patch)
treeb78b287b34c82ed25ff44145a550eeb502f4453a /source3
parentad98207f54a7e3d88108d34c4cf365d5f8bc23ef (diff)
downloadsamba-979f509e74c7cb2071478b9b1da9f254d98920cb.tar.gz
samba-979f509e74c7cb2071478b9b1da9f254d98920cb.tar.bz2
samba-979f509e74c7cb2071478b9b1da9f254d98920cb.zip
free NET_USER_INFO_3 gids when vuser invalidated.
(This used to be commit 2f056c2aadd2e16d89b66aabd1c166ab8d5abd76)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 6201b85357..4110530c0b 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -131,6 +131,10 @@ void invalidate_vuid(uint16 vuid)
free((char *)vuser->groups);
vuser->groups = NULL;
+
+ if (vuser->usr.gids != NULL)
+ free (vuser->usr.gids);
+ vuser->usr.gids = NULL;
}