summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-05-18 00:22:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:06 -0500
commit6a026d56185f56dc9bf5ae8e5c1d33a0ce32562b (patch)
tree80651a04f0eb2db8a7bdd42beb2aaf280b286890 /source3/locking
parentcc9ea93456e594432e203e6d2d2f4dbcaac9a3dd (diff)
downloadsamba-6a026d56185f56dc9bf5ae8e5c1d33a0ce32562b.tar.gz
samba-6a026d56185f56dc9bf5ae8e5c1d33a0ce32562b.tar.bz2
samba-6a026d56185f56dc9bf5ae8e5c1d33a0ce32562b.zip
r15670: Fix valgrind-spotted issue in BASE-DELETE test.
We were forgetting to increment after copying the primary group gid. Jeremy (This used to be commit 31d16c434e1ee94691f013ed0b31d9f26baeb2cb)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 2766b257be..a532a90d0d 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -665,6 +665,7 @@ static TDB_DATA unparse_share_modes(struct share_mode_lock *lck)
p += sizeof(uid_t);
memcpy(p, &lck->delete_token->gid, sizeof(gid_t));
+ p += sizeof(gid_t);
for (i = 0; i < lck->delete_token->ngroups; i++) {
memcpy(p, &lck->delete_token->groups[i], sizeof(gid_t));