smbd: Avoid checking the_lock->id for fresh locks
commitede6f448215a4ee81a1c7701c1cead2cc0a33198
authorVolker Lendecke <vl@samba.org>
Thu, 20 Mar 2014 13:53:14 +0000 (20 14:53 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 21 Mar 2014 18:20:17 +0000 (21 19:20 +0100)
tree6e31291abe07a7e0c4e5e9c907a28e94a9fd654c
parentc416b34648b6734b7b612d51fa9e151a201768da
smbd: Avoid checking the_lock->id for fresh locks

If we just fetched the lock, this check will always be true.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c