diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/locking/locking.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 113b994bc7..bae4518575 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -1281,11 +1281,7 @@ static UNIX_USER_TOKEN *copy_unix_token(TALLOC_CTX *ctx, UNIX_USER_TOKEN *tok) void set_delete_on_close_token(struct share_mode_lock *lck, UNIX_USER_TOKEN *tok) { - /* Ensure there's no token. */ - if (lck->delete_token) { - TALLOC_FREE(lck->delete_token); /* Also deletes groups... */ - lck->delete_token = NULL; - } + TALLOC_FREE(lck->delete_token); /* Also deletes groups... */ /* Copy the new token (can be NULL). */ lck->delete_token = copy_unix_token(lck, tok); |