From 8486d514f5c964b6c20c36f2e7938ad9cd943c70 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 2 Jun 2012 13:42:09 +0200 Subject: s3:smbd/close: avoid procid_is_me() metze --- source3/smbd/close.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 4b7f694510..3045990b98 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -170,6 +170,7 @@ static int compare_share_mode_times(const void *p1, const void *p2) static void notify_deferred_opens(struct smbd_server_connection *sconn, struct share_mode_lock *lck) { + struct server_id self = messaging_server_id(sconn->msg_ctx); uint32_t i, num_deferred; struct share_mode_entry *deferred; @@ -231,7 +232,7 @@ static void notify_deferred_opens(struct smbd_server_connection *sconn, for (i=0; ipid)) { + if (procid_equal(&self, &e->pid)) { /* * We need to notify ourself to retry the open. Do * this by finding the queued SMB record, moving it to -- cgit