mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Check for serverid_exists in notify_deferred_opens
We will remove the check in parse_share_modes soon Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f45966d169
commit
689a04bc6c
@ -179,9 +179,15 @@ static void notify_deferred_opens(struct smbd_server_connection *sconn,
|
||||
|
||||
num_deferred = 0;
|
||||
for (i=0; i<lck->data->num_share_modes; i++) {
|
||||
if (is_deferred_open_entry(&lck->data->share_modes[i])) {
|
||||
num_deferred += 1;
|
||||
struct share_mode_entry *e = &lck->data->share_modes[i];
|
||||
|
||||
if (!is_deferred_open_entry(e)) {
|
||||
continue;
|
||||
}
|
||||
if (share_mode_stale_pid(lck->data, i)) {
|
||||
continue;
|
||||
}
|
||||
num_deferred += 1;
|
||||
}
|
||||
if (num_deferred == 0) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user