sq only one invaliud
authorStefan Metzmacher <metze@samba.org>
Mon, 13 Feb 2012 14:36:47 +0000 (15:36 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:41 +0000 (18:41 +0200)
source3/locking/share_mode_lock.c

index 2b8fdf257ef96d0f1abd93932e26f53dc016b932..ed19c32b9c063c6e6a0a10a6a99b7ba437fd8a7e 100644 (file)
@@ -158,10 +158,10 @@ static struct share_mode_data *parse_share_modes(TALLOC_CTX *mem_ctx,
        if (d->num_share_modes == 1) {
                struct share_mode_entry *e = &d->share_modes[0];
 
-               if (e->pid == UINT64_MAX &&
-                   e->task_id == UINT32_MAX &&
-                   e->vnn == UINT32_MAX &&
-                   e->unique_id == UINT64_MAX) {
+               if (e->pid.pid == UINT64_MAX &&
+                   e->pid.task_id == UINT32_MAX &&
+                   e->pid.vnn == UINT32_MAX &&
+                   e->pid.unique_id == UINT64_MAX) {
                        return d;
                }
        }
@@ -202,10 +202,10 @@ static struct share_mode_data *parse_share_modes(TALLOC_CTX *mem_ctx,
                        d->modified = True;
                        continue;
                }
-               if (e->pid == UINT64_MAX &&
-                   e->task_id == UINT32_MAX &&
-                   e->vnn == UINT32_MAX &&
-                   e->unique_id == UINT64_MAX) {
+               if (e->pid.pid == UINT64_MAX &&
+                   e->pid.task_id == UINT32_MAX &&
+                   e->pid.vnn == UINT32_MAX &&
+                   e->pid.unique_id == UINT64_MAX) {
                        *e = d->share_modes[d->num_share_modes-1];
                        d->num_share_modes -= 1;
                        d->modified = True;