share conflict invalid pid...
authorStefan Metzmacher <metze@samba.org>
Mon, 13 Feb 2012 14:34:10 +0000 (15:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:40 +0000 (18:41 +0200)
source3/smbd/open.c

index da34af2919b966939638956ab3f7dbc3fc9a30ab..0d46650b89565804d8cfda478e39ef66ad106ab7 100644 (file)
@@ -821,6 +821,10 @@ static bool share_conflict(struct share_mode_entry *entry,
                  (unsigned int)entry->share_access,
                  (unsigned int)entry->private_options));
 
+       if (entry->pid.pid == UINT64_MAX) {
+               return false;
+       }
+
        DEBUG(10,("share_conflict: access_mask = 0x%x, share_access = 0x%x\n",
                  (unsigned int)access_mask, (unsigned int)share_access));